diff --git a/src/js/service/HistoryService.js b/src/js/service/HistoryService.js index e0e9e5e9..82070bad 100644 --- a/src/js/service/HistoryService.js +++ b/src/js/service/HistoryService.js @@ -28,6 +28,7 @@ this.shortcutService.addShortcut('ctrl+Z', this.undo.bind(this)); this.shortcutService.addShortcut('ctrl+Y', this.redo.bind(this)); + this.shortcutService.addShortcut('ctrl+shift+Z', this.redo.bind(this)); this.saveState({ type : ns.HistoryService.SNAPSHOT diff --git a/src/js/service/keyboard/ShortcutService.js b/src/js/service/keyboard/ShortcutService.js index 9ffdfa90..fec8da8a 100644 --- a/src/js/service/keyboard/ShortcutService.js +++ b/src/js/service/keyboard/ShortcutService.js @@ -14,9 +14,11 @@ /** * Add a keyboard shortcut - * @param {String} rawKey (case insensitive) key can be a meta (optional) + [a-z0-9] or - * a special key (check list of supported keys in KeycodeTranslator) - * eg. 'ctrl+A', 'del' + * @param {String} rawKey (case insensitive) a key is a combination of modifiers + ([a-z0-9] or + * a special key) (check list of supported special keys in KeycodeTranslator) + * eg. 'ctrl+A', + * 'del' + * 'ctrl+shift+S' * @param {Function} callback should return true to let the original event perform its default action */ ns.ShortcutService.prototype.addShortcut = function (rawKey, callback) {