[codex] Fix model shortcut in non-English locales#22
Conversation
|
Caution Review failedPull request was closed or merged during review WalkthroughEnhanced keyboard shortcut detection in the ModelSelector component by replacing platform-specific modifier checks with more robust key matching using Changes
Estimated code review effort🎯 2 (Simple) | ⏱️ ~8 minutes 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📝 Generate docstrings
🧪 Generate unit tests (beta)
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 |
Summary
Mkey instead of the localized characterCmd/Ctrl + Shift + Mbehavior while making it work on non-English keyboard layoutsRoot Cause
The shortcut handler compared
KeyboardEvent.keyto'm'. On non-English layouts,keyreflects the localized character rather than the physical key position, so the shortcut did not fire.Testing
pnpm typecheckpnpm buildSummary by CodeRabbit