Skip to content

Commit

Permalink
Fix flash mode and table mode shortcuts interfering with inputs
Browse files Browse the repository at this point in the history
  • Loading branch information
nas-tabchiche committed Dec 24, 2024
1 parent 5dc2620 commit c33c924
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@
function handleKeydown(event: KeyboardEvent) {
if (event.metaKey || event.ctrlKey) return;
// Check if the pressed key is 'e' and the edit button should be displayed
if (document.activeElement?.tagName !== 'BODY') return; // otherwise it will interfere with input fields
if (event.key === 'f') {
event.preventDefault();
goto(`${$page.url.pathname}/flash-mode`);
Expand Down

0 comments on commit c33c924

Please sign in to comment.