From 8658840ee7d46531aec30be8decca12963142202 Mon Sep 17 00:00:00 2001 From: DD Liu Date: Wed, 5 Sep 2018 18:02:39 -0400 Subject: [PATCH] Re-enable keyboard shortcuts (#654) --- src/hocs/keyboard-shortcuts-hoc.jsx | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/hocs/keyboard-shortcuts-hoc.jsx b/src/hocs/keyboard-shortcuts-hoc.jsx index 671b42f1..6a2babab 100644 --- a/src/hocs/keyboard-shortcuts-hoc.jsx +++ b/src/hocs/keyboard-shortcuts-hoc.jsx @@ -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 () {