Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

Using Chrome's Remote Desktop I would like to pass Ctrl+W to an application on the other PC but that actually closes my Chrome window. Any way of disabling shortcut keys in Chrome?

I searched through the web but didn't find any hacks. I added the shortcut manager extension but that can't manage the Ctrl+W shortcut or some other shortcuts.

share|improve this question
up vote 0 down vote accepted

hmmm... I understand your question, but the "Ctr + W" command closes the current tab in any browser not just google chrome.

My research did find people who have solved this issue:

share|improve this answer
This part of Google Chrome is really baaad. Anyways, the hacking solution that I have found is to pass a key combination that is not predefined and then on the other pc understand that as I wanted. So for with Ctrl+W I have chosen Ctrl+End using a little AHK script: SetKeyDelay, -1 ^End::^w So the answer is Chrome failed on this but there are working custom hacks... – obeliksz Mar 23 '13 at 13:07

It's extremely annoying since Ctrl+W is the vim equivalent of Ctrl+Backspace. I wrote this little Tampermonkey script to temporarily place an event listener on the page unload event:

// ==UserScript==
// @name       disable ctrl+w
// @namespace  http://use.i.E.your.homepage/
// @version    0.1
// @description  disable ctrl+w
// @match      http://*/*
// ==/UserScript==

document.addEventListener('keydown', function(evt){

    // NOTE: ctrl key is sent here, but ctrl+W is not
    if (evt.ctrlKey) {

        var stopEvilCtrlW = function(e) {
            return "Oopsies, Chrome!";
        },  clearEvilCtrlW = function() {
            window.removeEventListener('beforeunload', stopEvilCtrlW, false);  

        setTimeout(clearEvilCtrlW, 1000);
        window.addEventListener('beforeunload', stopEvilCtrlW, false);

}, false);
share|improve this answer

The ctrl+w key is used in the nano editor on linux systems. When using crosh in Google chrome this key combination results in a prompt to close the current window.

Try using ctrl+alt+w

Works for me when connecting to remote systems via ssh using crosh.

share|improve this answer
I'm not sure this answers the OP questions, but it's just what i was looking for, how to use vim in the Chrome SSH terminal. Thanks! – bradleybossard Oct 13 '15 at 20:41

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.