eclipse-theia / theia

Eclipse Theia is a cloud & desktop IDE framework implemented in TypeScript.
http://theia-ide.org
Eclipse Public License 2.0
19.98k stars 2.5k forks source link

Support Ctrl+N, Ctrl+T, and Ctrl+W keybindings in chrome / firefox #6755

Open vinokurig opened 4 years ago

vinokurig commented 4 years ago

Description

Find a way to override `Ctrl+N`, `Ctrl+T`, and `Ctrl+W` keybinding in chrome / firefox browsers. ### Reproduction Steps
  1. Apply VsCode Emacs Keymap extension
  2. open some file and try to execute the keybindings.

WRONG: Binded browser actions are executed instead of registered actions. OS and Theia version:

Diagnostics:

azatsarynnyy commented 4 years ago

AFAIK, there's no way to override the reserved hot-keys in Chrome. See this veeeery old issue https://bugs.chromium.org/p/chromium/issues/detail?id=119881#c84

akosyakov commented 4 years ago

@azatsarynnyy that's true, i was thinking about having alternative keybindings for browsers. VS Online should have the same issue. It would be good to start a discussion on VS Code repo to have it standartized in VS Code extension manifest. Maybe as well on the vim extension repo, simply explain that we are trying to run it in Theia, that keybindings don't work in browser and suggest to add alternative attribute to keybindings. VIM users there can have better ideas for alternative shortcuts.

iamalexchip commented 4 years ago

Using @theia/keymaps I was able to override the following when using chrome in fullscreen mode.

danepowell commented 1 year ago

Has anyone made progress on this?

I use terminal applications like nano and emacs that use key chords like ctrl + x / ctrl + w. These get intercepted by Chrome, which makes it impossible to use them in Theia. If the problem was just the Theia editor, I could rebind the keys in Theia, but the problem is specifically the Theia terminal. I can't think of any workaround 😢