From 72af0a4947787198c25aed723c5328f9f0ef376c Mon Sep 17 00:00:00 2001 From: realies Date: Tue, 20 Mar 2018 21:00:03 +0200 Subject: [PATCH] stop propagation, prevent input history call when alt is involved --- client/js/keybinds.js | 4 ++++ client/js/libs/jquery/inputhistory.js | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/client/js/keybinds.js b/client/js/keybinds.js index fa2da80e..416884a5 100644 --- a/client/js/keybinds.js +++ b/client/js/keybinds.js @@ -55,6 +55,8 @@ Mousetrap.bind([ } channels.eq(target).click(); + + return false; }); Mousetrap.bind([ @@ -87,6 +89,8 @@ Mousetrap.bind([ } lobbies.eq(target).click(); + + return false; }); Mousetrap.bind([ diff --git a/client/js/libs/jquery/inputhistory.js b/client/js/libs/jquery/inputhistory.js index d6f98360..5a4b9e13 100644 --- a/client/js/libs/jquery/inputhistory.js +++ b/client/js/libs/jquery/inputhistory.js @@ -56,7 +56,7 @@ import jQuery from "jquery"; case 38: // Up case 40: // Down // NOTICE: This is specific to The Lounge. - if (e.ctrlKey || e.metaKey || self.data("autocompleting")) { + if (e.ctrlKey || e.altKey || e.metaKey || self.data("autocompleting")) { break; }