no override of arrow up/down actions in toolbar search fields
This commit is contained in:
parent
f8a6b82c63
commit
a7fe2130ce
1 changed files with 3 additions and 2 deletions
|
@ -174,10 +174,11 @@ var ZoteroPane = new function()
|
|||
if (isMenu && ['ArrowUp', 'ArrowDown'].includes(key)) {
|
||||
return;
|
||||
}
|
||||
if (verticalArrowIsTab && key == 'ArrowUp') {
|
||||
let onInput = event.originalTarget.tagName.toLowerCase() == "input";
|
||||
if (verticalArrowIsTab && key == 'ArrowUp' && !onInput) {
|
||||
key = 'ShiftTab';
|
||||
}
|
||||
else if (verticalArrowIsTab && key == 'ArrowDown') {
|
||||
else if (verticalArrowIsTab && key == 'ArrowDown' && !onInput) {
|
||||
key = 'Tab';
|
||||
}
|
||||
let focusFunction = actionsMap[event.target.id]?.[key];
|
||||
|
|
Loading…
Reference in a new issue