Merge pull request #625 from torhve/altgrfix
Check modifier state and don't trigger on any altgr event
This commit is contained in:
commit
ed44c6747f
1 changed files with 8 additions and 0 deletions
|
@ -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;
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue