Apply review suggestion from @raccube

This commit is contained in:
Andreas Nedbal 2021-12-30 12:23:35 +01:00
parent 6df040eece
commit 06e31bb0be
1 changed files with 1 additions and 0 deletions

View File

@ -27,6 +27,7 @@ export function createListHandler(event: Event): void {
}
export function createListInputHandler(event: KeyboardEvent): void {
// Return key
if (event.which === 13) {
event.preventDefault();
document.querySelector<HTMLButtonElement>('button#create-list').click();