mirror of
https://github.com/Retrospring/retrospring.git
synced 2025-01-19 13:36:06 +01:00
Apply review suggestion from @raccube
This commit is contained in:
parent
6df040eece
commit
06e31bb0be
1 changed files with 1 additions and 0 deletions
|
@ -27,6 +27,7 @@ export function createListHandler(event: Event): void {
|
||||||
}
|
}
|
||||||
|
|
||||||
export function createListInputHandler(event: KeyboardEvent): void {
|
export function createListInputHandler(event: KeyboardEvent): void {
|
||||||
|
// Return key
|
||||||
if (event.which === 13) {
|
if (event.which === 13) {
|
||||||
event.preventDefault();
|
event.preventDefault();
|
||||||
document.querySelector<HTMLButtonElement>('button#create-list').click();
|
document.querySelector<HTMLButtonElement>('button#create-list').click();
|
||||||
|
|
Loading…
Reference in a new issue