Skip to content

Commit ef1f8ba

Browse files
wesmclaude
andcommitted
fix: Prevent key bubbling in Review Changes screen
Fixed bug where pressing keys like 'c' in the Review Changes screen would accidentally trigger app-level shortcuts (e.g., Edit Category modal). Now all unhandled keystrokes are stopped at the screen level. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
1 parent ec7bfd0 commit ef1f8ba

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

moneyflow/screens/review_screen.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -140,3 +140,7 @@ def on_key(self, event: Key) -> None:
140140
elif event.key == "enter":
141141
event.stop() # Prevent event from bubbling
142142
self.dismiss(True) # Commit
143+
else:
144+
# Stop all other keys from bubbling to parent app
145+
# This prevents accidental activation of app-level shortcuts (like 'c' for edit category)
146+
event.stop()

0 commit comments

Comments
 (0)