Skip to content

WL-0MO6ZDLJ5001JUQN: Prevent dialog keystroke passthrough#1585

Merged
SorraTheOrc merged 2 commits into
mainfrom
feature/WL-0MO6ZDLJ5001JUQN-fix-keystroke
Apr 22, 2026
Merged

WL-0MO6ZDLJ5001JUQN: Prevent dialog keystroke passthrough#1585
SorraTheOrc merged 2 commits into
mainfrom
feature/WL-0MO6ZDLJ5001JUQN-fix-keystroke

Conversation

@SorraTheOrc
Copy link
Copy Markdown
Member

Summary:\nPrevent app-level global shortcuts from acting on printable keystrokes when multi-line dialog textareas are focused. This fixes WL-0MO6ZDLJ5001JUQN where typing 'x' into the Create dialog description closed the Close dialog.\n\nChanges:\n- Tightened the global close-key handler guard in src/tui/controller.ts to avoid firing when dialogs/overlays are open.\n- Added an integration test ensuring 'x' does not open the Close dialog when typing into the create dialog textarea.\n\nTest plan:\n- Ran full test suite locally: all tests passed.\n- Manual verification: open Create dialog, focus description, type printable characters — they are inserted and no dialogs open.\n\nWork items:\n- Fix tracked in WL-0MO6ZDLJ5001JUQN.\n- Related refactor task: WL-0MO998PTZ009EK6U (Centralize modal guard).\n\nNotes:\n- This PR is intentionally small and surgical. A follow-up refactor will centralize the modal guard for global shortcuts (see WL-0MO998PTZ009EK6U).\n\nCommit: 7df809e

@SorraTheOrc
Copy link
Copy Markdown
Member Author

All CI checks are passing

This PR is ready for review.

Posted automatically by AMPA PR Monitor.

@SorraTheOrc SorraTheOrc merged commit 7df809e into main Apr 22, 2026
4 checks passed
@SorraTheOrc SorraTheOrc deleted the feature/WL-0MO6ZDLJ5001JUQN-fix-keystroke branch April 28, 2026 18:10
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.

1 participant