mirror of
https://github.com/nkanaev/yarr.git
synced 2025-05-24 00:33:14 +00:00
Firefox uses altKey to switch tabs
This commit is contained in:
parent
795a5d2cb4
commit
0f6d4d639d
@ -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…
x
Reference in New Issue
Block a user