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

[FR] Ctrl, shift or alt + backspace deletes a whole word at a time #1985

Closed
annieappflowy opened this issue Mar 13, 2023 · 9 comments
Closed
Assignees
Labels
shortcuts features related to keyboard shortcuts

Comments

@annieappflowy
Copy link
Collaborator

Description

As described in the title

Impact

Users who use a shortcut to delete a word

Additional Context

No response

@annieappflowy annieappflowy added the shortcuts features related to keyboard shortcuts label Mar 13, 2023
@MayurSMahajan
Copy link
Collaborator

Hello @annieappflowy! Actually pressing ctrl + backspace already deletes a word. This issue (#75 ) is already completed with this PR: #1845 . Maybe on some users' keyboards, it might not work because of different international keyboard layouts.

@Erik0806
Copy link

Doesn't work on a German keyboard

@annieappflowy
Copy link
Collaborator Author

The user who reported this issue is on a Norwegian keyboard

@richardshiue
Copy link
Collaborator

I'm not sure what's the norm on macOS but I've only been able to delete a whole word at a time in other text fields or text editing software (browser, office, etc) with Ctrl+Backspace, not shift+backspace or alt+backspace.

And to add to this, I hope the usability of the handler can be improved. When Ctrl+Backspace is triggered while there are multiple spaces and tabs after a word like an apple |, should still be able to delete the word. That is, the previous text turns into an |

@LucasXu0
Copy link
Collaborator

@MayurSMahajan is working on this issue. Users can customize the delete a whole word to their desired keybinding.

@MayurSMahajan
Copy link
Collaborator

MayurSMahajan commented Mar 15, 2023

And to add to this, I hope the usability of the handler can be improved. When Ctrl+Backspace is triggered while there are multiple spaces and tabs after a word like an apple |, should still be able to delete the word. That is, the previous text turns into an |

Yeah, that could be more reasonable, I will see what I can do about it.

@iBobik
Copy link

iBobik commented Mar 27, 2023

It should by default follow OS conventions. So on macOS alt+backpace for word.

@Xazin
Copy link
Collaborator

Xazin commented Mar 27, 2023

There is this PR on the Editor repo (AppFlowy-IO/appflowy-editor#32)

What it does is it makes cmd + backspace delete to beginning of sentence on MacOS, and alt + backspace on Windows. And makes it so ctrl + backspace on Windows deletes word, on MacOS word deletion is alt (option) + backspace.

@Xazin
Copy link
Collaborator

Xazin commented May 13, 2023

@annieappflowy This can be closed as done 👍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
shortcuts features related to keyboard shortcuts
Projects
Status: Done
Development

No branches or pull requests

7 participants