Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
vinokurig opened this issue Dec 16, 2019 · 4 comments
Open

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

vinokurig opened this issue Dec 16, 2019 · 4 comments
Labels
bug bugs found in the application keybindings issues related to keybindings vscode issues related to VSCode compatibility

Comments

@vinokurig
Copy link
Contributor

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:

@vinokurig vinokurig added bug bugs found in the application keybindings issues related to keybindings labels Dec 16, 2019
@akosyakov akosyakov added the vscode issues related to VSCode compatibility label Dec 16, 2019
@azatsarynnyy
Copy link
Member

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
Copy link
Member

akosyakov commented Dec 19, 2019

@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
Copy link

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

  • ctrl + w
  • ctrl + n
  • ctrl + o
  • ctrl + pageup
  • ctrl + pagedown

@danepowell
Copy link
Contributor

danepowell commented Aug 16, 2023

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 😢

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug bugs found in the application keybindings issues related to keybindings vscode issues related to VSCode compatibility
Projects
None yet
Development

No branches or pull requests

5 participants