Ignore Cmd-Shift-Z in large text areas in the Zotero pane

This commit is contained in:
Dan Stillman 2008-05-15 01:00:25 +00:00
parent 5fffc71e1f
commit dff22d1c10

View File

@ -415,6 +415,17 @@ var ZoteroPane = new function()
switch (command) {
case 'openZotero':
try {
// Ignore Cmd-Shift-Z keystroke in text areas
if (Zotero.isMac && key == 'Z' &&
event.originalTarget.localName == 'textarea') {
Zotero.debug('Ignoring keystroke in text area');
return;
}
}
catch (e) {
Zotero.debug(e);
}
ZoteroPane.toggleDisplay()
break;
case 'library':