Merge pull request #625 from torhve/altgrfix

Check modifier state and don't trigger on any altgr event
This commit is contained in:
Lorenz Hübschle-Schneider 2015-06-12 13:35:00 +02:00
commit ed44c6747f

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;