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:
@ -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;
|
||||
}
|
Reference in New Issue
Block a user