Ability to cancel nodes implemented

This commit is contained in:
barsdeveloper
2021-12-12 22:00:41 +01:00
parent 59eb68298c
commit 43439bbcd3
6 changed files with 728 additions and 629 deletions

View File

@@ -2,7 +2,7 @@ import Context from "./Context"
export default class KeyboardShortcut extends Context {
constructor(target, blueprint, options) {
constructor(target, blueprint, options = {}) {
options.wantsFocusCallback = true
super(target, blueprint, options)
@@ -15,7 +15,6 @@ export default class KeyboardShortcut extends Context {
let self = this
this.keyDownHandler = e => {
e.preventDefault()
if (
e.code == self.key
&& e.ctrlKey === self.ctrlKey