Fixes #461, tab bugs

This commit is contained in:
Dan Stillman 2006-12-21 08:40:31 +00:00
parent b650d99ef3
commit 1cf88c30e7

View File

@ -1028,15 +1028,26 @@ var ZoteroItemPane = new function()
if (row == row.parentNode.lastChild)
{
_tabDirection = 1;
var lastTag = true;
}
}
target.blur();
// Return focus to items pane
if (!lastTag) {
document.getElementById('zotero-items-tree').focus();
}
return false;
case event.DOM_VK_ESCAPE:
// Reset field to original value
target.value = target.getAttribute('value');
target.blur();
// Return focus to items pane
document.getElementById('zotero-items-tree').focus();
return false;
case event.DOM_VK_TAB:
@ -1199,11 +1210,6 @@ var ZoteroItemPane = new function()
}
_focusNextField(focusMode, focusBox, _lastTabIndex, _tabDirection==-1);
}
// If not tab and not new tag, return focus to items pane
// DEBUG: is this the best place for this?
else if (focusMode != 'tags') {
document.getElementById('zotero-items-tree').focus();
}
}
function modifyField(field, value)