]> BookStack Code Mirror - bookstack/blobdiff - resources/js/components/shortcut-input.js
Updated a batch of JS components
[bookstack] / resources / js / components / shortcut-input.js
index fa137898856da8e12dabfb96d998bb8e959e32e6..2a2aaa225a518c34413df94de2851745129dfa9e 100644 (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;
\ No newline at end of file
+}
\ No newline at end of file