Skip to content

Conversation

@ibetitsmike
Copy link
Contributor

Move Escape key stopPropagation into DialogContent component so all dialogs automatically prevent bubbling to global handlers (like stream interrupt). This removes the need for each dialog to implement this pattern individually.

Changes:

  • dialog.tsx: Add onKeyDown handler that stops Escape propagation, while still calling any consumer-provided onKeyDown
  • ToolResultImages.tsx: Remove redundant handler now that it's centralized

Testing:

  1. Open Settings modal while a stream is active
  2. Press Escape to close Settings
  3. Stream should continue (no longer interrupted)

Generated with mux • Model: anthropic:claude-opus-4-5 • Thinking: high

Move Escape key stopPropagation into DialogContent component so all
dialogs automatically prevent bubbling to global handlers (like stream
interrupt). This removes the need for each dialog to implement this
pattern individually.

Also removes the now-redundant handler from ToolResultImages.tsx.
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