-
Notifications
You must be signed in to change notification settings - Fork 2.4k
Description
🌈 Feature
Would the CodeSandbox team be interested in implementing hotkey defaults that work in browsers for common actions such as switching between tabs (VS Code Settings "View: Open Next Editor" and "View: Open Previous Editor").
For example, I would like to be able to switch to the next and previous tabs, but they are currently set to hotkeys like cmd-option-left/right, which collide with Chrome's bindings:
Since Chrome won't allow rebinding these keys, it would be cool if CodeSandbox had a binding for this out-of-the-box.
I know that I can just bind them myself, but I am suggesting to do this for all users to avoid having to do this.
Un-rebindable Keybindings
A list of keybindings that do not work in various platform + browser combinations (I've been testing them with JavaScript Event Key Tester with all suppressions enabled):
Chrome
macOS
- command-option-left (Previous Tab)
- command-shift-[ (Previous Tab)
- command-option-right (Next Tab)
- command-shift-] (Next Tab)
- command-w (Close Tab)
- command-t (Open New Tab)
- command-n (Open New Window)
References:
Prior Art: #1044 (comment)
I wish we could have native behaviour here, but Chrome doesn't allow us to override CMD + W. This is frustrating for me, for now I 'fixed' it by implementing CTRL + W for Mac as alternative...
Issue "Ctrl + Tab to switch between two files": #761 (PR with implementation: #817)
