Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Change TextArea to delete empty line on ctrl+k #4284

Merged
merged 2 commits into from
Mar 12, 2024

Conversation

davep
Copy link
Contributor

@davep davep commented Mar 12, 2024

Following the expected behaviour for ctrl+k from Emacs (and so by extension a text area on macOS -- see notes.app, or textedit.app, for example), this adds an alternative action to TextArea that will delete to end of line or, if the line is empty, will delete the line.

Also, to further enhance compatibility with expected ctrl+k behaviour, if the cursor is on the end of the line and ctrl+k is pressed a delete-right is performed.

Fixes #4277.

Following the expected behaviour for ctrl+k from Emacs (and so by extension
a text area on macOS -- see notes.app, or textedit.app, for example), this
adds an alternative action to TextArea that will delete to end of line or,
if the line is empty, will delete the line.

Also, to further enhance compatibility with expected ctrl+k behaviour, if
the cursor is on the end of the line and ctrl+k is pressed a delete-right is
performed.

Fixes Textualize#4277.
@davep davep self-assigned this Mar 12, 2024
@davep davep added enhancement New feature or request Task labels Mar 12, 2024
CHANGELOG.md Outdated Show resolved Hide resolved
Co-authored-by: Rodrigo Girão Serrão <[email protected]>
@davep davep merged commit 144deb8 into Textualize:main Mar 12, 2024
20 checks passed
@davep davep deleted the ctrl-k-kill-empty-line branch March 12, 2024 16:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request Task
Projects
None yet
Development

Successfully merging this pull request may close these issues.

TextArea CTRL-k behavior request
2 participants