Skip to content

Commit

Permalink
rollback
Browse files Browse the repository at this point in the history
  • Loading branch information
on committed Aug 7, 2025
1 parent a3bbff8 commit e2d286d
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
Expand Up @@ -2,7 +2,7 @@
// @name BAS Quick Search
// @namespace http://tampermonkey.net/
// @version 1.7.3
// @description Quick search using `Ctrl` + `Shift` + `F` hotkey, group search with "g:" prefix. Navigate tabs with Ctrl + Left/Right keys. Navigate search results with up and down keys. On Mac, use MetaKey instead of Ctrl.
// @description Quick search using `Ctrl` + `Shift` + `F` hotkey, group search with "g:" prefix. Navigate tabs with Ctrl + Left/Right keys. Navigate search results with up and down keys.
// @author Øyvind Nilsen (on@ntnu.no)
// @match https://bas.ntnu.no/*
// @grant none
Expand Down Expand Up @@ -269,7 +269,7 @@
// Global keyboard event handlers
document.addEventListener('keydown', function(event) {
// Show search box on Ctrl+Shift+F
if (((event.ctrlKey) || (event.metaKey)) && event.shiftKey && event.code === 'KeyF') {
if (event.ctrlKey && event.shiftKey && event.code === 'KeyF') {
event.preventDefault();
showSearchInterface();
return;
Expand Down Expand Up @@ -308,7 +308,7 @@
}

// Tab navigation with Ctrl + Arrow keys (when search is not visible)
if (((event.ctrlKey) || (event.metaKey)) && !event.altKey && !event.shiftKey && searchContainer.style.display === 'none') {
if (event.ctrlKey && !event.altKey && !event.shiftKey && searchContainer.style.display === 'none') {
if (event.code === 'ArrowRight') {
event.preventDefault();
navigateTab('next');
Expand Down

0 comments on commit e2d286d

Please sign in to comment.