jack-morrison / jack-morrison/RotateExternalMonitor
Include a check for Full Keyboard Access
- Dominant language
- AppleScript
- Stars
- 1
- Forks
- 0
- PR merge metrics
- No merged PRs in 30d
Description
Full Keyboard Access is required here since the user is prompted with an option to 'Confirm' or 'Revert' the screen rotation. Revert is in focus by default, which is no good. In order to script the confirmation, we must enable full keyboard access, then (tab + space) to press the button programatically.
I didn't even realize the default System Preferences restrict the usefulness of the keyboard, and I'd generally recommend toggling on the Full Keyboard Access anyway.
However, for completeness, this script should include a check, and if needed, a toggle for the (Control +F7) keystroke to enable Full Keyboard Access.
```
# during rotation confirmation
if full_keyboard_access is enabled
keystroke tab + space
else
toggle_full_keyboard_access
keystroke tab + space
toggle_full_keyboard_access
# confirmation is only required when switching to a non-standard state.
# There is no confirmation when returning to 'Standard' mode.
``
Contributor guide
No contributing guide indexed for this repository
Research direction
The issue names no file or test; start by locating the script's rotation-confirmation flow and its handling of the Confirm/Revert prompt. Check how macOS Full Keyboard Access can be detected and toggled, then verify both enabled and disabled paths, including restoring the original setting after confirmation.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- macos
- Domain
- desktop, operating-systems
- Issue type
- Feature
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 32/100