Check modifier state and don't trigger on any altgr event
This commit is contained in:
parent
5df0ce21a2
commit
e096284502
1 changed files with 8 additions and 0 deletions
|
@ -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;
|
||||
|
||||
|
|
Loading…
Reference in a new issue