diff --git a/bas-search.user.js b/bas-search.user.js index 863fe2b..020ee64 100644 --- a/bas-search.user.js +++ b/bas-search.user.js @@ -1,7 +1,7 @@ // ==UserScript== // @name BAS Quick Search // @namespace http://tampermonkey.net/ -// @version 1.4.3 +// @version 1.4.4 // @description Show a textbox on `Alt` + `/` key press and redirect to Cereweb search on Enter key press. Supports group search with "g:" prefix and accounts if you use no prefix or "a:" prefix. // @author Øyvind Nilsen (on@ntnu.no) // @match https://bas.ntnu.no/* @@ -29,7 +29,7 @@ // Show the input box when "/" is pressed document.addEventListener('keydown', function(event) { - if ((event.altKey || event.metaKey) && event.key === '/') { + if ((event.altKey || event.metaKey) && event.shiftKey && event.code === 'Digit7') { event.preventDefault(); inputBox.style.display = 'block'; inputBox.focus(); @@ -56,4 +56,4 @@ inputBox.addEventListener('blur', function() { inputBox.style.display = 'none'; }); -})(); \ No newline at end of file +})();