mirror of
https://github.com/barsdeveloper/ueblueprint.git
synced 2026-02-15 09:44:49 +08:00
Ability to cancel nodes implemented
This commit is contained in:
14
js/input/KeyboardCanc.js
Normal file
14
js/input/KeyboardCanc.js
Normal file
@@ -0,0 +1,14 @@
|
||||
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))
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user