Skip to content

fix: ignore keyboard shortcuts while typing in text fields - #785

Closed
wwhsaber wants to merge 1 commit into
yang991178:masterfrom
wwhsaber:fix/disable-shortcuts-in-text-fields
Closed

fix: ignore keyboard shortcuts while typing in text fields#785
wwhsaber wants to merge 1 commit into
yang991178:masterfrom
wwhsaber:fix/disable-shortcuts-in-text-fields

Conversation

@wwhsaber

Copy link
Copy Markdown

What

Disable single-key app shortcuts when the user is typing in form fields or when the article webview is showing the original webpage.

Why

Typing an email address (or any form input) could trigger shortcuts like m/b/s/h and close or mutate the article (issue #522).

Closes #522

Changes

  • itemShortcuts: ignore events whose target is INPUT/TEXTAREA/SELECT/contenteditable
  • nav shortcuts: same editable-target guard
  • article webview key handler: in webpage mode, keep only Escape/arrows and skip letter shortcuts

Verification

  • Type in search/settings inputs without triggering nav shortcuts
  • Open article original webpage and type in a form without letter shortcuts firing

Single-key shortcuts (m/b/s/h and nav F-keys) fire even when focus is in
inputs, textareas, or webpage form fields, closing or mutating the article
while the user types.

Closes yang991178#522
@wwhsaber

Copy link
Copy Markdown
Author

Closing to keep this batch to 5 focused PRs (keeping #784 for the unread-count fix). Happy to reopen the keyboard-shortcut fix separately.

@wwhsaber wwhsaber closed this Jul 16, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Disable keyboard shortcuts when a text field is in focus

2 participants