Fix #988, 5.0: Tab skips Abstract and Extra fields

This commit is contained in:
Dan Stillman 2016-05-04 21:09:47 -04:00
parent cd5e805b9e
commit 8c98abe9dc

View File

@ -2205,7 +2205,7 @@
tabindex = parseInt(tabindex);
// Get all fields with ztabindex attributes
var tabbableFields = box.querySelectorAll('label[ztabindex]');
var tabbableFields = box.querySelectorAll('*[ztabindex]');
if (!tabbableFields.length) {
Zotero.debug("No tabbable fields found");
@ -2223,7 +2223,7 @@
}
}
else {
Zotero.debug('Looking for next tabindex after ' + tabindex, 4);
Zotero.debug('Looking for next tabindex after ' + tabindex, 4);
for (var pos = 0; pos < tabbableFields.length; pos++) {
if (parseInt(tabbableFields[pos].getAttribute('ztabindex')) > tabindex) {
next = tabbableFields[pos];