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?
1 Answer
option 1:
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);