Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

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

2 Answers 2

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

Its 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

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.