[GH-ISSUE #437] features: add support for cmd + arrow keys for textarea navigation on Mac when using Kitty Keyboard #114

Closed
opened 2026-03-02 23:44:38 +03:00 by kerem · 2 comments
Owner

Originally created by @remorses on GitHub (Dec 22, 2025).
Original GitHub issue: https://github.com/anomalyco/opentui/issues/437

These keys on macOS go to start, end of line or buffer

In terminals without Kitty we already handle these because they are mapped to other keys. On Kitty Keyboard terminals they still do nothing. We need to add the key bindings

What do you think @kommander can I open a PR to add them by default? Should these only be enabled on darwin? They would be super modifier + arrow keys

Image
Originally created by @remorses on GitHub (Dec 22, 2025). Original GitHub issue: https://github.com/anomalyco/opentui/issues/437 These keys on macOS go to start, end of line or buffer In terminals without Kitty we already handle these because they are mapped to other keys. On Kitty Keyboard terminals they still do nothing. We need to add the key bindings What do you think @kommander can I open a PR to add them by default? Should these only be enabled on darwin? They would be `super` modifier + arrow keys <img width="1293" height="743" alt="Image" src="https://github.com/user-attachments/assets/65a2c841-bd8c-4018-917e-f6781628f616" />
kerem closed this issue 2026-03-02 23:44:38 +03:00
Author
Owner

@kommander commented on GitHub (Dec 22, 2025):

Mhh I think default would be okay, as without kitty keyboard it will just keep doing mostly nothing, because super modifier cannot be detected reliably.

For me cmd+left/right jumps to beginning/end of line. Is that what you mean?

<!-- gh-comment-id:3684167955 --> @kommander commented on GitHub (Dec 22, 2025): Mhh I think default would be okay, as without kitty keyboard it will just keep doing mostly nothing, because super modifier cannot be detected reliably. For me cmd+left/right jumps to beginning/end of line. Is that what you mean?
Author
Owner

@remorses commented on GitHub (Dec 22, 2025):

Yes. Also cmd+up would go to start of buffer, cmd+down would go to end of buffer

<!-- gh-comment-id:3684266498 --> @remorses commented on GitHub (Dec 22, 2025): Yes. Also cmd+up would go to start of buffer, cmd+down would go to end of buffer
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#114
No description provided.