Check modifier state and don't trigger on any altgr event

This commit is contained in:
Tor Hveem 2015-06-12 11:10:48 +02:00
parent 5df0ce21a2
commit e096284502

View file

@ -179,6 +179,14 @@ weechat.directive('inputBar', function() {
// Support different browser quirks // Support different browser quirks
var code = $event.keyCode ? $event.keyCode : $event.charCode; 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 // reset quick keys display
$rootScope.showQuickKeys = false; $rootScope.showQuickKeys = false;