mirror of
https://github.com/nkanaev/yarr.git
synced 2025-09-13 18:00:05 +00:00
Firefox uses altKey to switch tabs
This commit is contained in:
@@ -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]
|
||||||
|
Reference in New Issue
Block a user