Skip to content

iPadOS: Don't disable keyboard shortcuts that conflict with browser #2586

Closed
@jsjoeio

Description

@jsjoeio

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:

  1. Install your version of code-server as a PWA on iPad
  2. Open up code-serer
  3. Command Palette > Open Keyboard Shortcuts (JSON)
  4. Add the following to your keybindings.json
 {      
        "key": "cmd+w",
        "command": "workbench.action.closeActiveEditor"
}
  1. 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).

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions