Skip to content

Commit

Permalink
Merge pull request #849 from ccnmtl/panel-hotkey-bug
Browse files Browse the repository at this point in the history
Ignore keydown on inputs
  • Loading branch information
drewyoungren authored Nov 29, 2023
2 parents ec9e90f + 2f720b8 commit 1def38f
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 1def38f

Please sign in to comment.