From 9b01bedcfe9409aa7d7e4d30196fab64215c7cee Mon Sep 17 00:00:00 2001 From: SeerLite Date: Sun, 10 Jan 2021 19:38:15 -0300 Subject: [PATCH] Ignore Alt only modifier on Linux Alt is used for a lot of important shortcuts on Firefox on Linux. --- src/js/script.js | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/js/script.js b/src/js/script.js index b738ba302..2ccab56f8 100644 --- a/src/js/script.js +++ b/src/js/script.js @@ -4999,7 +4999,11 @@ function handleAlpha(event) { if (/F\d+/.test(event.key)) return; if (/Numpad/.test(event.key)) return; if (/Volume/.test(event.key)) return; - if (event.ctrlKey && !event.altKey) return; + if ( + event.ctrlKey != event.altKey && + (event.ctrlKey || /Linux/.test(window.navigator.platform)) + ) + return; if (event.metaKey) return; event = emulateLayout(event);