mirror of
https://github.com/barsdeveloper/ueblueprint.git
synced 2026-02-14 09:10:39 +08:00
19 lines
619 B
JavaScript
Executable File
19 lines
619 B
JavaScript
Executable File
import Configuration from "../../Configuration"
|
|
import IKeyboardShortcut from "./IKeyboardShortcut"
|
|
|
|
export default class KeyvoardCanc extends IKeyboardShortcut {
|
|
|
|
/**
|
|
* @param {HTMLElement} target
|
|
* @param {import("../../Blueprint").default} blueprint
|
|
* @param {OBject} options
|
|
*/
|
|
constructor(target, blueprint, options = {}) {
|
|
options = IKeyboardShortcut.keyOptionsParse(options, Configuration.deleteNodesKeyboardKey)
|
|
super(target, blueprint, options)
|
|
}
|
|
|
|
fire() {
|
|
this.blueprint.removeGraphElement(...this.blueprint.getNodes(true))
|
|
}
|
|
} |