X-Git-Url: http://source.bookstackapp.com/bookstack/blobdiff_plain/9135a85de4eef32a91c7a3ee0aa405ed454e5a4c..refs/pull/5280/head:/resources/js/components/shortcut-input.js diff --git a/resources/js/components/shortcut-input.js b/resources/js/components/shortcut-input.js index 2a2aaa225..17e05fc8d 100644 --- a/resources/js/components/shortcut-input.js +++ b/resources/js/components/shortcut-input.js @@ -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 +}