Google-chrome – Quickbooks online app overrides Chrome “open last closed tab” shortcut

google-chromekeyboard shortcutsquickbooks-online

Quickbooks Online's web app for macros overrides Chrome's command+shift+t command to open the last closed tab. Is there a way to make Chrome win this fight, or disable Quickbook's keyboard shortcut?

Best Answer

option 1:

  • disable JavaScript

    enter image description here

option 2:

  • use an extension and block individual scripts

option 3:

  • use Tampermonkey script:

    // ==UserScript==
    // @name           disable CTRL+SHIFT+T
    // @description    stop website from highjacking keyboard shortcuts
    //
    // @run-at         document-start
    // @include        *
    // @grant          none
    // ==/UserScript==
    keycodes = [84];
    (window.opera ? document.body : document).addEventListener('keydown', function(e) { if (keycodes.indexOf(e.keyCode) != -1 && e.ctrlKey) { e.cancelBubble = true; e.stopImmediatePropagation(); } return false; }, !window.opera);

Related Topic