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