Commit 5ce5f07
fix: Prevent Enter key propagation from filter modal to main view
Fixed event propagation issue where pressing Enter in the filter modal
would both apply filters AND trigger drill-down action in the main view.
**Issue**: After pressing Enter to apply filters, app would immediately
drill down into the first row of the table.
**Root Cause**: Enter key event was not stopped, so it bubbled up from
the modal to the main app's on_data_table_row_selected handler.
**Fix**: Added event.stop() calls to ALL keyboard shortcuts in FilterScreen:
- Enter/Space: Stop before applying filters
- Escape: Stop before dismissing
- h: Stop before toggling hidden checkbox
- t: Stop before toggling transfers checkbox
**This is a common Textual pattern**: Modal screens must stop key events
to prevent them from reaching parent widgets.
**Affected Workflow:**
1. User presses 'f' to open filters
2. User presses 'h' or 't' to toggle options
3. User presses Enter to apply
4. Before: Would drill down immediately
5. After: Cleanly dismisses modal, no drill-down
All 465 tests passing, pyright clean.
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Co-Authored-By: Claude <noreply@anthropic.com>1 parent 0ec6ba9 commit 5ce5f07
1 file changed
+4
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
591 | 591 | | |
592 | 592 | | |
593 | 593 | | |
| 594 | + | |
594 | 595 | | |
595 | 596 | | |
| 597 | + | |
596 | 598 | | |
597 | 599 | | |
598 | 600 | | |
599 | 601 | | |
600 | 602 | | |
| 603 | + | |
601 | 604 | | |
602 | 605 | | |
603 | 606 | | |
604 | 607 | | |
| 608 | + | |
605 | 609 | | |
606 | 610 | | |
607 | 611 | | |
| |||
0 commit comments