Satisfy formatter

This commit is contained in:
Henrik Giesel 2021-03-08 20:55:04 +01:00
parent 972993b42e
commit 76260c3f8d

View file

@ -63,15 +63,19 @@ export function onKey(evt: KeyboardEvent): void {
globalThis.addEventListener("keydown", (evt: KeyboardEvent) => {
if (evt.code === "Tab") {
globalThis.addEventListener("focusin", (evt: FocusEvent) => {
globalThis.addEventListener(
"focusin",
(evt: FocusEvent) => {
const newFocusTarget = evt.target;
if (newFocusTarget instanceof EditingArea) {
caretToEnd(newFocusTarget);
updateButtonState();
}
}, { once: true })
},
{ once: true }
);
}
})
});
export function onKeyUp(evt: KeyboardEvent): void {
const currentField = evt.currentTarget as EditingArea;