Fix shortcuts firing like crazy

whoops
This commit is contained in:
somebody
2022-12-16 20:01:13 -06:00
parent 9e6dcc7d6a
commit 416d3c3a0b

View File

@@ -6161,6 +6161,7 @@ function initalizeTooltips() {
(function() {
document.addEventListener("keydown", function(event) {
for (const shortcut of shortcuts) {
if (!(event.ctrlKey || event.altKey)) continue;
if (event.ctrlKey && shortcut.mod !== "ctrl") continue;
if (event.altKey && shortcut.mod !== "alt") continue;