Skip to content

Settings: two key rows can share a combo and one goes silently dead #628

Backlog

Description

@Maxaubert

Found in the review of #627 (Anchor to centre).

Settings has no duplicate check between key rows. Two rows can share one combo, and then one of them silently does nothing:

  • Two RegisterHotKey keys (Hide pointer, Anchor to centre, hotkey-mode quick zoom) on the same combo: the second registration fails. Since feat(view): anchor the zoomed view to the screen centre (0.32.0) (#512) #627 the core logs a Warn, but the UI says nothing.
  • A RegisterHotKey key on the same combo as an LL-hook key (zoom, Recenter, Inspect): the hook swallows it first, so WM_HOTKEY never fires.
  • Any key on Win+Esc (the quit hotkey).

Also related: Hide pointer and Inspect can stay on when their key is removed by a reload (switch off, unbound, profile switch). #627 handles this for Anchor to centre only.

Suggested fix: refuse or warn in the Bindings row when a combo matches another KEY_SLOTS entry or Win+Esc. Optionally, report failed registrations back to the UI. Clear Hide pointer and Inspect when their key goes away.

🤖 Generated with Claude Code

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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