Skip to content

feat(textinput,textarea): add shift+backspace support#972

Open
jabagawee wants to merge 1 commit into
charmbracelet:mainfrom
jabagawee:feat/shift-backspace
Open

feat(textinput,textarea): add shift+backspace support#972
jabagawee wants to merge 1 commit into
charmbracelet:mainfrom
jabagawee:feat/shift-backspace

Conversation

@jabagawee
Copy link
Copy Markdown

Aliases shift+backspace to the existing DeleteCharacterBackward binding in both textinput and textarea. On keyboard protocols that distinguish modifiers (e.g. the kitty keyboard protocol), shift+backspace arrives as a separate key, so users in those environments can't delete a character backward while holding shift. Most other editors treat the two identically.

Discussion: #971

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

Some keyboard protocols (e.g. kitty keyboard) report shift+backspace
as a distinct key from backspace. Alias the new key string to the
existing DeleteCharacterBackward binding so users in those environments
can hold shift while deleting characters.
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.

1 participant