mirror of
https://github.com/barsdeveloper/ueblueprint.git
synced 2026-02-04 08:50:33 +08:00
23 lines
614 B
JavaScript
Executable File
23 lines
614 B
JavaScript
Executable File
// @ts-check
|
|
|
|
import IKeyboardShortcut from "./IKeyboardShortcut"
|
|
|
|
export default class KeyboardCanc extends IKeyboardShortcut {
|
|
|
|
/**
|
|
* @param {HTMLElement} target
|
|
* @param {import("../../Blueprint").default} blueprint
|
|
* @param {Object} options
|
|
*/
|
|
constructor(target, blueprint, options = {}) {
|
|
options = {
|
|
...options,
|
|
activationKeys: blueprint.settings.deleteNodesKeyboardKey
|
|
}
|
|
super(target, blueprint, options)
|
|
}
|
|
|
|
fire() {
|
|
this.blueprint.removeGraphElement(...this.blueprint.getNodes(true))
|
|
}
|
|
} |