Unbind Backspace from collection delete on Windows/Linux

This commit is contained in:
Dan Stillman 2010-02-02 20:37:04 +00:00
parent c22b063d1d
commit d049d8db83

View file

@ -683,7 +683,7 @@ var ZoteroPane = new function()
function handleKeyPress(event, from) {
if (from == 'zotero-collections-tree') {
if (event.keyCode == event.DOM_VK_BACK_SPACE ||
if ((event.keyCode == event.DOM_VK_BACK_SPACE && Zotero.isMac) ||
event.keyCode == event.DOM_VK_DELETE) {
ZoteroPane.deleteSelectedCollection();
event.preventDefault();