Skip to content

Conversation

@JoshFerge
Copy link
Member

@JoshFerge JoshFerge commented Dec 5, 2025

Fixes keyboard shortcuts (specifically Cmd+/ for opening the Explore panel) not working on German and other non-US keyboard layouts.

The keyboard shortcut system was using deprecated keyCode property which doesn't work correctly with different keyboard layouts (like German QWERTZ). On German keyboards, the "/" character requires Shift+7 and has a different keyCode, causing Cmd+/ shortcuts to fail.

This change updates the useHotkeys hook to use the modern event.key property for better keyboard layout compatibility, while maintaining backwards compatibility with keyCode for special keys that may not have a key property.

The fix ensures that shortcuts like Cmd+/ (used for the Explore panel) now work correctly on German and other non-US keyboards.
@github-actions github-actions bot added the Scope: Frontend Automatically applied to PRs that change frontend components label Dec 5, 2025
@JoshFerge JoshFerge marked this pull request as draft December 5, 2025 22:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Scope: Frontend Automatically applied to PRs that change frontend components

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants