Skip to content

feat(textarea): support ctrl + left/right/backspace - #1020

Merged
andrinoff merged 1 commit into
charmbracelet:mainfrom
zoriya:feat/ctrl
Aug 4, 2026
Merged

feat(textarea): support ctrl + left/right/backspace#1020
andrinoff merged 1 commit into
charmbracelet:mainfrom
zoriya:feat/ctrl

Conversation

@zoriya

@zoriya zoriya commented Jul 26, 2026

Copy link
Copy Markdown
Contributor
  • I have read CONTRIBUTING.md.
  • I have created a discussion that was approved by a maintainer (for new features).

This is the equivalent of #387 but for textarea instead of textinput. This missing seemed like an oversight. I also added ctrl+backspace and ctrl+delete on both textarea and textinput for consistency.

@andrinoff

Copy link
Copy Markdown
Member

Thank you!

Comment thread textarea/textarea.go
Comment on lines +82 to +83
WordForward: key.NewBinding(key.WithKeys("alt+right", "ctrl+right", "alt+f"), key.WithHelp("alt+right", "word forward")),
WordBackward: key.NewBinding(key.WithKeys("alt+left", "ctrl+left", "alt+b"), key.WithHelp("alt+left", "word backward")),

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think this is a non-issue, but just a general heads up that this typically won't work on macOS.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

it does work, both ctrl-left and cmd-left

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ctrl+right/left works on mac

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

if you use mutliple desktops ctrl left/right is both to switching desktops — but again, non issue.

@andrinoff
andrinoff merged commit 8cea431 into charmbracelet:main Aug 4, 2026
11 checks passed
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.

3 participants