Files
ueblueprint/js/input/KeyboardCanc.js
2021-12-12 22:00:41 +01:00

14 lines
334 B
JavaScript

import KeyboardShortcut from "./KeyboardShortcut";
export default class KeyvoardCanc extends KeyboardShortcut {
constructor(target, blueprint, options = {}) {
options.key = "Delete"
super(target, blueprint, options)
}
fire() {
this.blueprint.deleteNode(...this.blueprint.getNodes(true))
}
}