Add Alt+Tab / Alt+Shift+Tab window-switching navigation actions - #1
Conversation
Windows users expect Alt+Tab to cycle windows/apps. Add four new NavigationAction presets so this can be mapped without needing raw key-swap rules: Switch App (⌘Tab), Switch Window (⌘`), and their reverse (⇧⌘Tab / ⇧⌘`) counterparts for going back. Localized in all 14 supported languages. Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
There was a problem hiding this comment.
Pull request overview
This PR adds new preset NavigationActions to support Windows-style Alt+Tab / Alt+Shift+Tab window/app switching mappings, along with localized display strings so users can select these actions without creating raw key-swap rules.
Changes:
- Adds four new
NavigationActionpresets for app/window switching (forward and reverse) using ⌘Tab and ⌘`. - Extends
NavigationAction.localizedNameto provide localized UI labels for the new actions. - Adds new
L10nentries (and translations) for the four “Switch *” action labels.
Reviewed changes
Copilot reviewed 2 out of 2 changed files in this pull request and generated no comments.
| File | Description |
|---|---|
Sources/BC64Keys/Localization.swift |
Adds actionSwitchApp, actionSwitchWindow, and reverse variants with translations used by the UI. |
Sources/BC64Keys/BC64KeysApp.swift |
Adds new NavigationAction presets and localized-name mapping branches for the new switch actions. |
💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.
|
@badcode64 Please let me know if you'd like this PR done differently. I tried to adhere to the |
|
Hi @bhasden — thanks for using BC64Keys, and thanks for the PR. It's well put together, I'll review it as soon as I can. The Alt+Tab mapping is a good idea. The reason I never added it myself is that I use a separate app of mine for window switching: It handles app switching, and also switching between multiple windows of the same app — so if you have several projects open in Cursor or VS Code, it can cycle through those too. You might find it useful alongside BC64Keys. That said, having the presets built into BC64Keys makes sense for people who don't want a second app running, so I'm not against the change at all. I'll get back to you after I've gone through the diff. |
Well that makes sense. Thanks for the link. I'll check out the separate Window Manager app. |
Summary
NavigationActionpresets under the existing "Navigation Action" mapping type, so Windows switchers can map Alt+Tab / Alt+Shift+Tab to macOS window/app switching without hand-crafting a raw key-swap rule:localizedNamebranches and translated strings for all 14 supported languages inLocalization.swift, following the existingaction*naming/dictionary pattern.Test plan
swiftccompiles cleanly (both files, arm64 target, no warnings)./build.shproduces a signed universalBC64Keys.app