mirror of
https://github.com/ghostty-org/ghostty.git
synced 2025-07-16 08:46:08 +03:00
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.
This commit is contained in:
@ -2008,7 +2008,7 @@ pub fn mouseButtonCallback(
|
|||||||
// Handle link clicking. We want to do this before we do mouse
|
// Handle link clicking. We want to do this before we do mouse
|
||||||
// reporting or any other mouse handling because a successfully
|
// reporting or any other mouse handling because a successfully
|
||||||
// clicked link will swallow the event.
|
// 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();
|
const pos = try self.rt_surface.getCursorPos();
|
||||||
if (self.processLinks(pos)) |processed| {
|
if (self.processLinks(pos)) |processed| {
|
||||||
if (processed) return;
|
if (processed) return;
|
||||||
|
Reference in New Issue
Block a user