Handle conflicts with browser shortcuts
Problem to solve
The Web IDE Beta introduces new workflows and shortcuts, some of which conflict with browser shortcuts.
Proposal
Not quite sure how to handle this one. We probably shouldn't hijack browser shortcuts but we don't want to close the Web IDE when people (justifiably) think they can close the current tab by using CMD/CTRL + W.
Details
See https://code.visualstudio.com/docs/editor/vscode-web#_keybindings for some known conflicts and workarounds.
List of shortcuts we know conflict:
Keyboard shortcut | Action | Layout | What happens |
---|---|---|---|
CMD/CTRL + W | Close tab | all | |
CMD/CTRL + T | New tab, when used as a shortcut chord following CMD/CTRL + K) | all | |
CMD/CTRL + Z | Undo action | German/Swiss keyboard | |
CMD/CTRL + V | Paste | US-mac |
cmd + v copies the relative file name into IDE, not the copied contents. |
CMD/CTRL + R | Reload | ||
CMD/CTRL + +- | Zoom in/out | German keyboard |
cmd + adds a tab indent, cmd - inserts a HTML comment. |
F5 | Reload | opening the Run and Debug tab |
Edited by Joe Randazzo