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