Re-enable keyboard shortcuts (#654)

This commit is contained in:
DD Liu 2018-09-05 18:02:39 -04:00 committed by GitHub
parent 6f5c47686d
commit 8658840ee7
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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 () {