1
0
mirror of https://github.com/BookStackApp/BookStack.git synced 2025-07-27 06:01:54 +03:00

Updated a batch of JS components

This commit is contained in:
Dan Brown
2022-11-15 11:24:31 +00:00
parent 09c6a3c240
commit 4310d34135
19 changed files with 124 additions and 128 deletions

View File

@ -1,13 +1,12 @@
import {Component} from "./component";
/**
* Keys to ignore when recording shortcuts.
* @type {string[]}
*/
const ignoreKeys = ['Control', 'Alt', 'Shift', 'Meta', 'Super', ' ', '+', 'Tab', 'Escape'];
/**
* @extends {Component}
*/
class ShortcutInput {
export class ShortcutInput extends Component {
setup() {
this.input = this.$el;
@ -52,6 +51,4 @@ class ShortcutInput {
this.input.removeEventListener('keydown', this.listenerRecordKey);
}
}
export default ShortcutInput;
}