]> BookStack Code Mirror - bookstack/blobdiff - resources/js/components/shortcut-input.js
Opensearch: Fixed XML declaration when php short tags enabled
[bookstack] / resources / js / components / shortcut-input.js
index 2a2aaa225a518c34413df94de2851745129dfa9e..17e05fc8d140ae7fcd9e22b1310a80459fdfff1c 100644 (file)
@@ -1,4 +1,4 @@
-import {Component} from "./component";
+import {Component} from './component';
 
 /**
  * Keys to ignore when recording shortcuts.
@@ -18,16 +18,16 @@ export class ShortcutInput extends Component {
         this.listenerRecordKey = this.listenerRecordKey.bind(this);
 
         this.input.addEventListener('focus', () => {
-             this.startListeningForInput();
+            this.startListeningForInput();
         });
 
         this.input.addEventListener('blur', () => {
             this.stopListeningForInput();
-        })
+        });
     }
 
     startListeningForInput() {
-        this.input.addEventListener('keydown', this.listenerRecordKey)
+        this.input.addEventListener('keydown', this.listenerRecordKey);
     }
 
     /**
@@ -51,4 +51,4 @@ export class ShortcutInput extends Component {
         this.input.removeEventListener('keydown', this.listenerRecordKey);
     }
 
-}
\ No newline at end of file
+}