Firefox uses altKey to switch tabs
This commit is contained in:
parent
795a5d2cb4
commit
0f6d4d639d
1 changed files with 1 additions and 1 deletions
|
|
@ -197,7 +197,7 @@ function isTextBox(element) {
|
||||||
document.addEventListener('keydown',function(event) {
|
document.addEventListener('keydown',function(event) {
|
||||||
// Ignore while focused on text or
|
// Ignore while focused on text or
|
||||||
// when using modifier keys (to not clash with browser behaviour)
|
// when using modifier keys (to not clash with browser behaviour)
|
||||||
if (isTextBox(event.target) || event.metaKey || event.ctrlKey) {
|
if (isTextBox(event.target) || event.metaKey || event.ctrlKey || event.altKey) {
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
var keybindFunction = keybindings[event.key] || codebindings[event.code]
|
var keybindFunction = keybindings[event.key] || codebindings[event.code]
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue