From 58f7836cef42ca5b00c6533ed606b1b1fd563efe Mon Sep 17 00:00:00 2001 From: Sveinung Bergeton Marvik Date: Mon, 3 Feb 2025 14:51:00 +0100 Subject: [PATCH] Patch for shortcuts on Mac Patch for shortcuts on Mac --- bas-search.user.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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 +})();