www

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs | Submodules | README | LICENSE

commit 5913e6780e6bc885551db508c84c4a3b7ab25206
parent 8d807b73c6f163f82c5aa5b7a5917c5977d5d404
Author: Dan Stillman <dstillman@zotero.org>
Date:   Tue, 29 Apr 2014 17:11:07 -0400

Fix Redo via Cmd-Shift-Z in notes on OS X

Diffstat:
Mchrome/content/zotero/bindings/styled-textbox.xml | 20++++++++++++++++++++
1 file changed, 20 insertions(+), 0 deletions(-)

diff --git a/chrome/content/zotero/bindings/styled-textbox.xml b/chrome/content/zotero/bindings/styled-textbox.xml @@ -125,6 +125,18 @@ this._eventHandler = function (event) { //Zotero.debug(event.type); switch (event.type) { + case 'keydown': + // Intercept and manually trigger redo for Cmd-Shift-Z, + // which keeps it from toggling the Zotero pane instead + if (Zotero.isMac && event.metaKey && event.shiftKey && !event.ctrlKey + && !event.altKey && event.keyCode == 90) { + event.stopPropagation(); + event.preventDefault(); + self.redo(); + return; + } + break; + case 'keypress': // Ignore keypresses that don't change // any text @@ -336,6 +348,14 @@ </body> </method> + <method name="redo"> + <body> + <![CDATA[ + this._editor.undoManager.redo(); + ]]> + </body> + </method> + <method name="clearUndo"> <body> <![CDATA[