mirror of
https://github.com/piskelapp/piskel.git
synced 2023-08-10 21:12:52 +03:00
Enhancement : Adding CTRL+SHIFT+Z as REDO shortcut
This commit is contained in:
parent
d576c56068
commit
055bcdb001
@ -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
|
||||
|
@ -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) {
|
||||
|
Loading…
Reference in New Issue
Block a user