Skip to content

Commit

Permalink
Ignore keydown on inputs
Browse files Browse the repository at this point in the history
  • Loading branch information
drewyoungren committed Nov 29, 2023
1 parent ec9e90f commit 2f720b8
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion media/src/Panel.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -244,7 +244,9 @@
});
const onKeyDown = (e) => {
if (e.key === 'h') {
if (e.target.matches('input')) {
return;
} else if (e.key === 'h') {
showPanel = !showPanel;
}
};
Expand Down

0 comments on commit 2f720b8

Please sign in to comment.