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

Add support for ctrl+h as backspace #1812

Merged
merged 1 commit into from Jul 21, 2022
Merged

Conversation

zenofsahil
Copy link
Contributor

Ctrl+h is commonly supported when editing text input. Would be good to have for the egui textedits as well.

@Barugon
Copy link
Contributor

Barugon commented Jul 10, 2022

What OS would this apply to, because it's certainly not a Linux thing and I don't ever recall it being a Windows hotkey for backspace.

@zenofsahil
Copy link
Contributor Author

Ctrl+h deletes the previous character in bash/zsh. Its supported in vim. It's supported within most applications that accept any text input on macs. The GNU readline library supports it AFAIK so pretty sure its there on Linux too.

@Barugon
Copy link
Contributor

Barugon commented Jul 11, 2022

Well, I didn't know that about bash. Learn something new every day.

@zenofsahil
Copy link
Contributor Author

Bash uses the readline library to accept text input. readline supports emacs/vi keybindings. The keybindings section in man readline list out all the supported emacs/vi bindings.

@emilk emilk merged commit 48d4809 into emilk:master Jul 21, 2022
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.

None yet

3 participants