Skip to content

Commit 0ff8d0e

Browse files
committed
fix: ignore shortcuts when in an input field
1 parent 20303cf commit 0ff8d0e

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/components/TopMenu.svelte

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,9 @@
4343
}
4444
4545
function keyPress(e: KeyboardEvent) {
46+
if (e.target instanceof HTMLInputElement || e.target instanceof HTMLTextAreaElement) {
47+
return;
48+
}
4649
switch (e.key) {
4750
case 'f':
4851
if (chart) {

0 commit comments

Comments
 (0)