Repository navigation
Keep focus where you're working, and open the dashboard to assistive tools - #32
Open
edward-mcnair wants to merge 1 commit into
Open
edward-mcnair wants to merge 1 commit into
edward-mcnair wants to merge 1 commit into
Conversation
…tools The dashboard was an ordinary window that EdgeControl activated at launch, on every placement after wake and on every click. A newly launched app opens its first window on the display holding keyboard focus, so while the dashboard had focus, apps opened on the dashboard's display, behind the kiosk. Measured with a probe app on a four-display setup: with EdgeControl active and its key window on the dashboard's display, the probe's window opened there; with another app active it opened on the display in use, even while the dashboard held the keyboard as a non-activating panel. Focus: - The dashboard is a non-activating NSPanel (hidesOnDeactivate off). Clicks and touches work without EdgeControl becoming the frontmost app. - The keyboard is borrowed only when needed: text fields (until you click elsewhere), edit mode (Esc, Cmd-Z) until it ends. - Focus is handed back after launch, and when Settings or Quick Capture closes. - "Dashboard Never Takes Focus" in General (on) restores the old behaviour when turned off; the window is rebuilt, no relaunch needed. Accessibility: - KioskHostingView keeps the tree hidden for drag performance, but exposes it while VoiceOver, Switch Control, Voice Control or Full Keyboard Access is on. The last two have no public flag; they're read from the com.apple.Accessibility preferences (FullKeyboardAccessEnabled, CommandAndControlEnabled), re-read at most every two seconds, with an "Always Available to Accessibility Tools" setting as the fallback. - Widget cards are named containers; Edit and Settings have names; touch buttons and tappables carry the button trait and a default action; the Settings switches are titled. - Activating EdgeControl on purpose (Cmd-Tab, the Dock) gives the dashboard the keyboard, so Full Keyboard Access and Voice Control can work in it; "Use Dashboard with Keyboard" in the menu-bar menu does the same when the app is hidden from the Dock. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What does this PR do?
Focus. The dashboard was an ordinary window that EdgeControl activated at launch, after wake and on every click. A newly launched app opens its first window on the display holding keyboard focus, so apps opened behind the kiosk on the dashboard's display.
This was measured with a probe app on a four-display setup:
The changes:
NSPanel(hidesOnDeactivateoff). Clicks and touches work without EdgeControl becoming frontmost.Accessibility.
KioskHostingViewstill hides the tree for drag performance, but now exposes it while VoiceOver, Switch Control, Voice Control or Full Keyboard Access is on.com.apple.Accessibilitypreferences (FullKeyboardAccessEnabled,CommandAndControlEnabled), re-read at most every 2 s.Tests:
DashboardFocusTests(6 cases). Activation-dependent behaviour was checked by hand rather than in CI, where it would be flaky.Verified on a MacBook with two Studio Displays and a XENEON EDGE: launching apps, typing elsewhere while using the dashboard, edit mode, VoiceOver, Voice Control and Full Keyboard Access.
Screenshots
No visual change beyond two switches in Settings → General.
Checklist
swift-formatlint clean)🤖 Generated with Claude Code