Skip to content

Alias shift+backspace to backspace in Input and TextArea#6611

Open
rian-dolphin wants to merge 2 commits into
Textualize:mainfrom
rian-dolphin:shift-backspace-delete-left
Open

Alias shift+backspace to backspace in Input and TextArea#6611
rian-dolphin wants to merge 2 commits into
Textualize:mainfrom
rian-dolphin:shift-backspace-delete-left

Conversation

@rian-dolphin

@rian-dolphin rian-dolphin commented Jun 30, 2026

Copy link
Copy Markdown

Link to issue or discussion: #6612

This binds shift+backspace alongside backspace to delete_left in both widgets, mirroring the existing alt+backspace (#6593) and super+backspace (#6594) aliases. Added regression tests for both widgets; the full tests/input/ and tests/text_area/test_edit_via_bindings.py suites pass (229), and changed files are black-formatted.

One thing to flag: the CHANGELOG.md entry 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.

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.
@rian-dolphin rian-dolphin force-pushed the shift-backspace-delete-left branch from 400ee5c to b094e54 Compare June 30, 2026 11:27
@rian-dolphin rian-dolphin marked this pull request as ready for review June 30, 2026 11:33
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