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