Apply review suggestion from @raccube
This commit is contained in:
parent
6df040eece
commit
06e31bb0be
|
@ -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();
|
||||
|
|
Loading…
Reference in New Issue