Commit 0630c60
Yogthos
fix: remove EnableMouseCapture to allow native terminal text selection
Root cause: EnableMouseCapture sent ?1000h/?1002h/?1006h/?1015h to the
terminal, redirecting ALL mouse events (including drag) to the app.
This blocked the terminal's native text selection.
Changes:
- terminal.rs: remove EnableMouseCapture, update shutdown comment.
DECRST sequences are idempotent defensive cleanup so left in place.
- event.rs: remove ScrollUp, ScrollDown, MouseDown, MouseDrag,
MouseUp variants from UserEvent enum.
- ui/mod.rs: remove background mouse event reader thread, all
mouse/scroll event handlers in main loop and permission alert
loop, selection-copy handler (y key), selection-clear handler
(Esc key), and Esc double-tap guard that checked selection_active.
- slash.rs: update help text — 'drag + Cmd/Ctrl+C' replaces mouse
selection and mouse scroll entries.
Users now use native terminal text selection (drag to select,
Cmd+C/Ctrl+Shift+C to copy, PgUp/PgDn to scroll).1 parent 5b8a152 commit 0630c60
4 files changed
Lines changed: 10 additions & 469 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
157 | 157 | | |
158 | 158 | | |
159 | 159 | | |
160 | | - | |
161 | | - | |
162 | | - | |
163 | | - | |
164 | | - | |
165 | | - | |
166 | | - | |
167 | | - | |
168 | | - | |
169 | | - | |
170 | | - | |
171 | | - | |
172 | | - | |
173 | | - | |
174 | 160 | | |
175 | 161 | | |
176 | 162 | | |
| |||
0 commit comments