Alias shift+backspace to backspace in Input and TextArea#6611
Open
rian-dolphin wants to merge 2 commits into
Open
Alias shift+backspace to backspace in Input and TextArea#6611rian-dolphin wants to merge 2 commits into
rian-dolphin wants to merge 2 commits into
Conversation
81124dd to
400ee5c
Compare
On terminals that report the shift modifier as a separate key event (e.g. via the Kitty keyboard protocol), shift+backspace was unbound in both Input and TextArea and did nothing. This binds it to delete_left so it behaves the same as plain backspace, mirroring the existing alt+backspace (Textualize#6593) and super+backspace (Textualize#6594) aliases.
400ee5c to
b094e54
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Link to issue or discussion: #6612
This binds
shift+backspacealongsidebackspacetodelete_leftin both widgets, mirroring the existingalt+backspace(#6593) andsuper+backspace(#6594) aliases. Added regression tests for both widgets; the fulltests/input/andtests/text_area/test_edit_via_bindings.pysuites pass (229), and changed files are black-formatted.One thing to flag: the
CHANGELOG.mdentry uses an## Unreleased. I'm not sure if I should edit that file or not.I used Claude Code (Opus 4.8) for this PR. Just noting as per the guidelines.