mirror of
https://github.com/scratchfoundation/scratch-paint.git
synced 2024-12-22 21:42:30 -05:00
Re-enable keyboard shortcuts (#654)
This commit is contained in:
parent
6f5c47686d
commit
8658840ee7
1 changed files with 2 additions and 3 deletions
|
@ -42,8 +42,7 @@ const KeyboardShortcutsHOC = function (WrappedComponent) {
|
|||
this.props.setSelectedItems(this.props.format);
|
||||
}
|
||||
} else if (event.metaKey || event.ctrlKey) {
|
||||
/* @todo (fsih) add back when bugs are fixed
|
||||
if (event.shiftKey && event.key === 'z') {
|
||||
if (event.shiftKey && event.key.toLowerCase() === 'z') {
|
||||
this.props.onRedo();
|
||||
} else if (event.key === 'z') {
|
||||
this.props.onUndo();
|
||||
|
@ -56,7 +55,7 @@ const KeyboardShortcutsHOC = function (WrappedComponent) {
|
|||
this.changeToASelectMode();
|
||||
event.preventDefault();
|
||||
this.selectAll();
|
||||
}*/
|
||||
}
|
||||
}
|
||||
}
|
||||
changeToASelectMode () {
|
||||
|
|
Loading…
Reference in a new issue