[GH-ISSUE #521] bug: weird select behaviour when textarea is scrollable #905

Closed
opened 2026-03-14 09:00:10 +03:00 by kerem · 3 comments
Owner

Originally created by @danolekh on GitHub (Jan 14, 2026).
Original GitHub issue: https://github.com/anomalyco/opentui/issues/521

when trying to go through different edge cases for #518 feature
i've stumbled on annoying behaviour: when you are in select mode (shift is toggled) and move your cursor to position off the visible textarea content, it doesn't behave normally
here is an example with shift and cmd+arrow keys:
when textarea is scrollable, it doesn't work as expected
when the whole content is fully contained within visible textarea content, it it works as expected

https://github.com/user-attachments/assets/204d14f2-66fa-4cb1-8647-b70fa3efe942

Originally created by @danolekh on GitHub (Jan 14, 2026). Original GitHub issue: https://github.com/anomalyco/opentui/issues/521 when trying to go through different edge cases for #518 feature i've stumbled on annoying behaviour: when you are in select mode (shift is toggled) and move your cursor to position off the visible textarea content, it doesn't behave normally here is an example with shift and cmd+arrow keys: when textarea is scrollable, it doesn't work as expected when the whole content is fully contained within visible textarea content, it it works as expected https://github.com/user-attachments/assets/204d14f2-66fa-4cb1-8647-b70fa3efe942
kerem closed this issue 2026-03-14 09:00:16 +03:00
Author
Owner

@danolekh commented on GitHub (Jan 14, 2026):

i think i have a fix for this
it was written mostly by claude so im ready for anything

https://github.com/user-attachments/assets/7a61e7f2-6a87-4cbf-843f-b760d9619f76

<!-- gh-comment-id:3749106418 --> @danolekh commented on GitHub (Jan 14, 2026): i think i have a fix for this it was written mostly by claude so im ready for anything https://github.com/user-attachments/assets/7a61e7f2-6a87-4cbf-843f-b760d9619f76
Author
Owner

@kommander commented on GitHub (Jan 18, 2026):

This should be fixed now?

<!-- gh-comment-id:3765296213 --> @kommander commented on GitHub (Jan 18, 2026): This should be fixed now?
Author
Owner

@danolekh commented on GitHub (Jan 18, 2026):

it is! ty

<!-- gh-comment-id:3765301205 --> @danolekh commented on GitHub (Jan 18, 2026): it is! ty
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/opentui#905
No description provided.