mirror of
https://github.com/scratchfoundation/scratch-paint.git
synced 2025-01-10 14:42:13 -05:00
Don't navigate away when paint editor is open and delete/backspace are pressed' (#679)
This commit is contained in:
parent
b6ad997ea2
commit
a5baa14316
1 changed files with 1 additions and 0 deletions
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue