Skip to content

Cmd+click links require mouse wiggle before becoming clickable #242

@Whoaa512

Description

@Whoaa512

When holding Cmd over a terminal link, the link doesn't become clickable/underlined until the mouse is moved over it again. You have to wiggle the cursor across the link a couple times before it highlights and becomes clickable.

Standalone Ghostty fixed this in ghostty-org/ghostty#2395 by refreshing hyperlink state when modifier keys change (via NSEvent.addLocalMonitorForEvents). However, that fix lives in Ghostty's macOS AppDelegate layer, which Supacode doesn't use since it embeds GhosttyKit directly.

Supacode's GhosttySurfaceView.flagsChanged does forward modifier key events to Ghostty, but the hyperlink state refresh on modifier-only key changes may not be wired up in the embedded apprt path.

Expected behavior: Pressing Cmd while hovering over a link should immediately underline it and make it clickable, without requiring mouse movement.

Steps to reproduce:

  1. Print a URL: echo https://example.com
  2. Hover cursor over the URL
  3. Press and hold Cmd — link does not highlight
  4. Move mouse slightly — link highlights and becomes clickable

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions