From 6c6b42d40c9330f5cac50e003012e2b4d0749133 Mon Sep 17 00:00:00 2001 From: Matt Robenolt Date: Fri, 26 Jan 2024 20:23:40 -0800 Subject: [PATCH] Open links with Super+click A few people, including myself, many times accidentally click links by either clicking around aimlessly or getting focus back to Ghostty that happens to be hovering over a link. In iTerm2, if you want links enabled, it's always Cmd+Click. --- src/Surface.zig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Surface.zig b/src/Surface.zig index c0670c8b8..ecce0a109 100644 --- a/src/Surface.zig +++ b/src/Surface.zig @@ -2008,7 +2008,7 @@ pub fn mouseButtonCallback( // Handle link clicking. We want to do this before we do mouse // reporting or any other mouse handling because a successfully // clicked link will swallow the event. - if (button == .left and action == .release and self.mouse.over_link) { + if (button == .left and action == .release and mods.super and self.mouse.over_link) { const pos = try self.rt_surface.getCursorPos(); if (self.processLinks(pos)) |processed| { if (processed) return;