Skip to content

Commit

Permalink
changed hotkey to alt+/
Browse files Browse the repository at this point in the history
  • Loading branch information
on committed Aug 19, 2024
1 parent f456c9a commit ea28e63
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions bas-search.user.js
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
// ==UserScript==
// @name BAS Quick Search
// @namespace http://tampermonkey.net/
// @version 1.4.1
// @description Show a textbox on "/" 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.
// @version 1.4.2
// @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 on@ntnu.no
// @match https://bas.ntnu.no/*
// @grant none
Expand All @@ -29,7 +29,7 @@

// Show the input box when "/" is pressed
document.addEventListener('keydown', function(event) {
if (event.key === '/') {
if (event.altKey && event.key === '/') {
event.preventDefault();
inputBox.style.display = 'block';
inputBox.focus();
Expand Down

0 comments on commit ea28e63

Please sign in to comment.