diff --git a/src/hocs/keyboard-shortcuts-hoc.jsx b/src/hocs/keyboard-shortcuts-hoc.jsx index 6a2babab..736b22a7 100644 --- a/src/hocs/keyboard-shortcuts-hoc.jsx +++ b/src/hocs/keyboard-shortcuts-hoc.jsx @@ -38,6 +38,7 @@ const KeyboardShortcutsHOC = function (WrappedComponent) { event.preventDefault(); clearSelection(this.props.clearSelectedItems); } else if (event.key === 'Delete' || event.key === 'Backspace') { + event.preventDefault(); if (deleteSelection(this.props.mode, this.props.onUpdateImage)) { this.props.setSelectedItems(this.props.format); }