Skip to content

Command + W Key Binding #322

Discussion options

You must be logged in to vote

Hey there @201flaviosilva, this is not possible under normal circumstances in the browser, there is no way a website can capture these special keybinds like Ctrl + N or Ctrl + W. This could be only possible using the Keyboard lock API, which not a good option now for two reasons:

  1. It is still experimental, no support for most browsers, basically just Chrome.
  2. The browser tab has to be in full screen mode which is most of the time not desirable, but I'd love to discuss this with the VS Code team @ Microsoft.

Replies: 1 comment 4 replies

Comment options

You must be logged in to vote
4 replies
@filiptronicek
Comment options

@201flaviosilva
Comment options

@201flaviosilva
Comment options

@rutsky
Comment options

Answer selected by 201flaviosilva
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants