Skip to content

feat: activate the panel window when the hotkey opens it on Windows - #54

Merged
rgdevment merged 1 commit into
mainfrom
feat/issue-49
Aug 5, 2026
Merged

feat: activate the panel window when the hotkey opens it on Windows#54
rgdevment merged 1 commit into
mainfrom
feat/issue-49

Conversation

@rgdevment

Copy link
Copy Markdown
Owner

Windows only grants foreground rights while the process owns the input that caused the change. WM_HOTKEY grants it, but the notification crosses to Dart and waits on several platform calls before asking for focus, so by then the right is gone: SetForegroundWindow reports success while merely flashing the taskbar button, leaving the panel visible but inactive and spending the user's first click on activating it.

Attaching our input queue to the foreground thread restores the right for the duration of the call — the same technique the paste path already uses to restore the destination window.

Closes #49

Windows only grants foreground rights while the process owns the input
that caused the change. WM_HOTKEY grants it, but the notification crosses
to Dart and waits on several platform calls before asking for focus, so by
then the right is gone: SetForegroundWindow reports success while merely
flashing the taskbar button, leaving the panel visible but inactive and
spending the user's first click on activating it.

Attaching our input queue to the foreground thread restores the right for
the duration of the call — the same technique the paste path already uses
to restore the destination window.

Closes #49
@rgdevment
rgdevment merged commit b7df961 into main Aug 5, 2026
9 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Set scroll wheel to navigate between items

1 participant