Fix Shift-Tab in Title and Extra fields

Fixes #1806
This commit is contained in:
Dan Stillman 2020-04-07 04:04:37 -04:00
parent ffa2a8d9be
commit 5bb2486040

View file

@ -310,6 +310,7 @@
}
this.itemTypeMenu.parentNode.hidden = false;
this.itemTypeMenu.setAttribute('ztabindex', '0');
}
else {
this.itemTypeMenu.parentNode.hidden = true;
@ -1768,6 +1769,10 @@
this._focusNextField(this._lastTabIndex, true);
}
else {
// If on the last field, allow default tab action
if (this._lastTabIndex == this._tabIndexMaxFields) {
return;
}
this._focusNextField(++this._lastTabIndex);
}
return false;
@ -2315,7 +2320,14 @@
return false;
}
next.click();
// Drop-down needs to be focused
if (next.id == 'item-type-menu') {
next.focus();
}
// Fields need to be clicked
else {
next.click();
}
// 1) next.parentNode is always null for some reason
// 2) For some reason it's necessary to scroll to the next element when