You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
🤖 Fix Ctrl+A and Ctrl+C interception in text inputs (#355)
## Problem
Ctrl+A (select all) and Ctrl+C (copy) were broken in text inputs because
the keybinds were being intercepted globally, even when the user was
typing.
## Solution
Only intercept these keybinds when actively needed:
- **Ctrl+A (ACCEPT_EARLY_COMPACTION)**: Only intercept during active
compaction, otherwise allow browser's select-all behavior
- **Ctrl+C (INTERRUPT_STREAM)**: Only intercept during compaction or
when not in an editable element, otherwise allow browser's copy behavior
## Testing
1. Open cmux in browser (server mode)
2. Type text in the chat input
3. Press Ctrl+A - should select all text
4. Press Ctrl+C - should copy selected text
5. During active compaction, both keybinds should still trigger their
compaction-related actions
_Generated with `cmux`_
0 commit comments