Repository navigation
Stop the kiosk window from stealing key focus - #57
Conversation
The Edge dashboard window could become key, so every tap moved the keyboard focus off the app being typed into on the main display, and a shortcut such as Cmd-V landed in the dashboard. FirstMouseWebView already delivers the first click through acceptsFirstMouse, so the window needs no key status. It is now a non-activating NSPanel that refuses key and main. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
fdussert
left a comment
There was a problem hiding this comment.
Thanks Livio, this one fixes a real annoyance. I tested it on a real Xeneon Edge with real touches: typing in TextEdit on the main display while tapping the dashboard keeps the keyboard in TextEdit, ⌘Tab now opens on the main display instead of the Edge, taps, drags and swipes still reach the page, and the long press still opens the admin, which takes the keyboard right away. scripts/test-helper.sh passes.
One side effect worth knowing: the dashboard can no longer hear the ← → keys that turned pages, since it never becomes key. That's the point of the change and no widget has a text field, so I'm fine with it.
I'll merge it locally with the rest of main (only a CHANGELOG conflict); it lands with the next push.
|
Thanks for this fix, @LivioGama. It shipped in Fremkit 0.5.1, released today, with you as the author of the commit and its line in the release notes: https://github.com/fdussert/fremkit/releases/tag/v0.5.1 |
Problem
Tapping the Edge dashboard made its window key, so the app being typed into on the main display lost keyboard focus. A dashboard shortcut sending ⌘V pasted into the dashboard instead of the user's field.
Change
KioskNSWindowis now a borderless.nonactivatingPanelNSPanelwithcanBecomeKey/canBecomeMain= false. Clicks still reach the page throughFirstMouseWebView.acceptsFirstMouse. CHANGELOG line added.Verification
swift build(native): passes.🤖 Generated with Claude Code