Closed
Description
The PWA version of code-server can support top-level shortcuts normally reserved for the browser (e.g. cmd
+ w
).
We think VSCode (upstream) disables keyboard shortcuts which may conflict with browser shortcuts here. I've tested this out locally by manually adding the keyboard shortcut cmd
+ w
which normally closes a tab in Safari/Chrome/Firefox.
To see this working
Follow these steps to see in action:
- Install your version of code-server as a PWA on iPad
- Open up code-serer
Command Palette > Open Keyboard Shortcuts (JSON)
- Add the following to your
keybindings.json
{
"key": "cmd+w",
"command": "workbench.action.closeActiveEditor"
}
- Test out command by hitting
cmd
+w
to close an active file
Solution
Check if code-server is running as a PWA. If it is, allow conflicting keyboard shortcuts (e.g. cmd
+ w
).