Skip to content

Commit

Permalink
fix(timer): combine switch cases
Browse files Browse the repository at this point in the history
  • Loading branch information
aleksasiriski committed Jul 9, 2024
1 parent a93acea commit 873d5a2
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/lib/components/gadgets/timer/main.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -92,15 +92,13 @@
onkeydown={(event) => {
switch (event.key) {
case 'Escape':
case 'Enter':
editMode = false;
break;
case ' ':
event.preventDefault();
toggleActive();
break;
case 'Enter':
editMode = false;
break;
}
}}
onclick={({ target }) => {
Expand Down

0 comments on commit 873d5a2

Please sign in to comment.