Skip to content

Commit

Permalink
Disable key event when hold ctrl
Browse files Browse the repository at this point in the history
  • Loading branch information
HOAIAN2 committed Aug 1, 2024
1 parent fabf5de commit b8bad2d
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/js/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -185,6 +185,7 @@ const appState = Object.freeze((() => {
if (window.location.pathname.startsWith('/direct')) return;
if (IGNORE_FOCUS_ELEMENTS.includes(e.target.tagName)) return;
if (e.target.role === 'textbox') return;
if (e.ctrlKey) return;
if (DOWNLOAD_EVENT_KEYS.includes(e.key)) {
return DOWNLOAD_BUTTON.click();
}
Expand Down

0 comments on commit b8bad2d

Please sign in to comment.