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