From dff22d1c1036eae65375c9803f5127fe8aa23168 Mon Sep 17 00:00:00 2001 From: Dan Stillman Date: Thu, 15 May 2008 01:00:25 +0000 Subject: [PATCH] Ignore Cmd-Shift-Z in large text areas in the Zotero pane --- chrome/content/zotero/overlay.js | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/chrome/content/zotero/overlay.js b/chrome/content/zotero/overlay.js index 272a71088..0a82f9871 100644 --- a/chrome/content/zotero/overlay.js +++ b/chrome/content/zotero/overlay.js @@ -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':