mirror of
https://github.com/barsdeveloper/ueblueprint.git
synced 2026-02-04 08:50:33 +08:00
21 lines
603 B
JavaScript
21 lines
603 B
JavaScript
import KeyboardShortcut from "./KeyboardShortcut"
|
|
import Configuration from "../Configuration"
|
|
|
|
|
|
export default class KeyvoardCanc extends KeyboardShortcut {
|
|
|
|
/**
|
|
*
|
|
* @param {HTMLElement} target
|
|
* @param {import("../Blueprint").default} blueprint
|
|
* @param {OBject} options
|
|
*/
|
|
constructor(target, blueprint, options = {}) {
|
|
options = KeyboardShortcut.keyOptionsParse(options, Configuration.deleteNodesKeyboardKey)
|
|
super(target, blueprint, options)
|
|
}
|
|
|
|
fire() {
|
|
this.blueprint.removeGraphElement(...this.blueprint.getNodes(true))
|
|
}
|
|
} |