X-Git-Url: http://source.bookstackapp.com/bookstack/blobdiff_plain/bbf13e9242051b0002aa6e0d2e67b78dbe006779..3f5dc10cd4cf901b44b1cf8c9e2626bf0425d488:/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 +}