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 some macOS emacs keybindings #1243

Merged
merged 3 commits into from Feb 19, 2022

Conversation

terhechte
Copy link
Contributor

@terhechte terhechte commented Feb 12, 2022

macOS has support for a subset of Emacs keybindings in all input fields. Here's an overview of these bindings / shortcuts. A input field that doesn't support at least a subset of this subset feels alien as it doesn't behave as expected. This PR implements some of those bindings:

  • Move cursor left: ^B
  • Move cursor right: ^F
  • Beginning of line: ^A
  • End of line: ^E
  • Line up: ^P
  • Line down: ^N

It doesn't implement move-by-word, selection or deletion, but I thought the above would be a good start.

Copy link
Owner

@emilk emilk left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I had no idea these key bindings existed on Mac :) Now I know

egui/src/widgets/text_edit/builder.rs Show resolved Hide resolved
CHANGELOG.md Outdated Show resolved Hide resolved
@terhechte terhechte requested a review from emilk February 15, 2022 14:28
@emilk emilk merged commit 8e62b38 into emilk:master Feb 19, 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

2 participants