Add support for backspace (#2551)

This commit is contained in:
Elvina Valieva 2021-12-19 12:35:06 +01:00 committed by GitHub
parent df1a0f3c44
commit d6c7528420
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -574,7 +574,8 @@ export default mixins(
if (e.key === 'd') {
this.callDebounced('deactivateSelectedNode', 350);
} else if (e.key === 'Delete') {
} else if (e.key === 'Delete' || e.key === 'Backspace') {
e.stopPropagation();
e.preventDefault();