mirror of
https://github.com/barsdeveloper/ueblueprint.git
synced 2026-02-03 23:55:04 +08:00
21 lines
595 B
JavaScript
21 lines
595 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.deleteNode(...this.blueprint.getNodes(true))
|
|
}
|
|
} |