From e096284502b822849f0ba27a9c69c5fd15930c4a Mon Sep 17 00:00:00 2001 From: Tor Hveem Date: Fri, 12 Jun 2015 11:10:48 +0200 Subject: [PATCH] Check modifier state and don't trigger on any altgr event --- js/inputbar.js | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/js/inputbar.js b/js/inputbar.js index 8553c07..37cc7d1 100644 --- a/js/inputbar.js +++ b/js/inputbar.js @@ -179,6 +179,14 @@ weechat.directive('inputBar', function() { // Support different browser quirks var code = $event.keyCode ? $event.keyCode : $event.charCode; + var altg = $event.getModifierState('AltGraph'); + + // Mac OSX behaves differntly for altgr, so we check for that + if (altg) { + // We don't handle any anything with altgr + return false; + } + // reset quick keys display $rootScope.showQuickKeys = false;