Skip to content

Fix #344: prevent shortcut keys from intercepting text input in new session dialog#346

Merged
asheshgoplani merged 1 commit intomainfrom
fix/344-shortcut-intercepts-text-input
Mar 17, 2026
Merged

Fix #344: prevent shortcut keys from intercepting text input in new session dialog#346
asheshgoplani merged 1 commit intomainfrom
fix/344-shortcut-intercepts-text-input

Conversation

@asheshgoplani
Copy link
Copy Markdown
Owner

Summary

  • Added isTextInputFocused() helper that detects when a text input field (name, path, branch, or custom command) is actively receiving keystrokes
  • Guarded all single-letter shortcut handlers (s, w, m, y) so they only fire when no text input is focused
  • Added TestNewDialog_ShortcutsBlockedDuringTextInput test covering the fix

Fixes #344

… in new session dialog (#344)

When a text input field is focused (name, path, branch, or custom command),
single-letter shortcuts (s/w/m/y) now correctly type into the input instead
of toggling checkboxes. Added isTextInputFocused() helper to detect active
text input state and guard all single-letter shortcut handlers.

Committed by Ashesh Goplani
@asheshgoplani asheshgoplani marked this pull request as ready for review March 17, 2026 10:43
@asheshgoplani asheshgoplani merged commit ac30bf4 into main Mar 17, 2026
1 check passed
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.

Single-letter shortcuts (s, w, m, y) intercept text input in New Session form

1 participant