feat(desktop): support F1-F12 as hotkeys without modifiers#956
feat(desktop): support F1-F12 as hotkeys without modifiers#956Kitenite merged 1 commit intosuperset-sh:mainfrom
Conversation
- Add F1-F12 to ELECTRON_KEY_MAP for hotkey recognition - Allow function keys (F1-F12) as valid app hotkeys without requiring Cmd/Ctrl modifiers - Update terminal keyboard handler to let unconfigured F1-F12 pass through to terminal apps - Rename hasPrimaryModifier to isValidAppHotkey for better semantics
📝 WalkthroughWalkthroughThe changes enhance hotkey handling by adding function key support (F1–F12) to the desktop app's keyboard subsystem. The shared hotkeys module now treats function keys as valid app hotkeys without requiring modifiers, renames the validation function to reflect this broader logic, and updates the terminal helper and hotkeys store to use centralized hotkey resolution instead of simple modifier checks. Changes
Estimated code review effort🎯 3 (Moderate) | ⏱️ ~20 minutes Possibly related PRs
Suggested reviewers
Poem
🚥 Pre-merge checks | ✅ 2 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (2 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing touches
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
|
@iven Sorry for taking so long, this works! |
Description
Related Issues
Type of Change
Testing
Screenshots (if applicable)
Additional Notes
Summary by CodeRabbit
✏️ Tip: You can customize this high-level summary in your review settings.