From 76260c3f8d1b3ce590b7cc04c0191903783c5d46 Mon Sep 17 00:00:00 2001 From: Henrik Giesel Date: Mon, 8 Mar 2021 20:55:04 +0100 Subject: [PATCH] Satisfy formatter --- ts/editor/inputHandlers.ts | 20 ++++++++++++-------- 1 file changed, 12 insertions(+), 8 deletions(-) diff --git a/ts/editor/inputHandlers.ts b/ts/editor/inputHandlers.ts index bed09d66c..052575614 100644 --- a/ts/editor/inputHandlers.ts +++ b/ts/editor/inputHandlers.ts @@ -63,15 +63,19 @@ export function onKey(evt: KeyboardEvent): void { globalThis.addEventListener("keydown", (evt: KeyboardEvent) => { if (evt.code === "Tab") { - globalThis.addEventListener("focusin", (evt: FocusEvent) => { - const newFocusTarget = evt.target; - if (newFocusTarget instanceof EditingArea) { - caretToEnd(newFocusTarget); - updateButtonState(); - } - }, { once: true }) + globalThis.addEventListener( + "focusin", + (evt: FocusEvent) => { + const newFocusTarget = evt.target; + if (newFocusTarget instanceof EditingArea) { + caretToEnd(newFocusTarget); + updateButtonState(); + } + }, + { once: true } + ); } -}) +}); export function onKeyUp(evt: KeyboardEvent): void { const currentField = evt.currentTarget as EditingArea;