diff --git a/src/util/keyboard.ts b/src/util/keyboard.ts index 45e592adcf2..bed5f5887da 100644 --- a/src/util/keyboard.ts +++ b/src/util/keyboard.ts @@ -155,7 +155,7 @@ export class Keyboard { let isKeyInputEnabled = false; function cssClass() { - this._dom.write(() => { + self._dom.write(() => { document.body.classList[isKeyInputEnabled ? 'add' : 'remove']('focus-outline'); }); }