Skip to content

Commit

Permalink
hopefully made innsida-search compatible with mac
Browse files Browse the repository at this point in the history
  • Loading branch information
on committed Aug 20, 2024
1 parent ad5d972 commit 4b1d01f
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions innsida-search.user.js
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
// ==UserScript==
// @name Innsida Quick Search
// @namespace http://tampermonkey.net/
// @version 1.0.1
// @description [alt] + "/" to search on Innsida
// @version 1.0.2
// @description [alt] + "/" to search on Innsida
// @author on@ntnu.no
// @match https://innsida.ntnu.no/*
// @grant none
Expand All @@ -29,7 +29,7 @@

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

0 comments on commit 4b1d01f

Please sign in to comment.