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

Fix empty keystroke with simulated IME #19414

Merged
merged 1 commit into from
Oct 21, 2024

Conversation

brunocalza
Copy link
Contributor

Closes #19181

When the keystroke was empty ("") the ime_key was converted from None to Some("") when with_simulated_ime was called. That was leading to not intentional behavior when an empty keystroke was combined with shift-up in a keybinding ["workspace::SendKeystrokes", "shift-up "].

By adding a key.is_empty() we make sure the ime_key keeps as None.

This was manually tested.

Release Notes:

  • Fixed empty keystroke with simulated ime

Signed-off-by: Bruno Calza <brunoangelicalza@gmail.com>
Copy link

cla-bot bot commented Oct 18, 2024

We require contributors to sign our Contributor License Agreement, and we don't have @brunocalza on file. You can sign our CLA at https://zed.dev/cla. Once you've signed, post a comment here that says '@cla-bot check'.

@brunocalza
Copy link
Contributor Author

@cla-bot check

@cla-bot cla-bot bot added the cla-signed The user has signed the Contributor License Agreement label Oct 18, 2024
Copy link

cla-bot bot commented Oct 18, 2024

The cla-bot has been summoned, and re-checked this pull request!

@brunocalza brunocalza marked this pull request as ready for review October 18, 2024 13:48
@maxdeviant maxdeviant changed the title fix: empty keystroke with simulated ime Fix empty keystroke with simulated IME Oct 18, 2024
@ConradIrwin ConradIrwin merged commit a2c6b4a into zed-industries:main Oct 21, 2024
11 of 12 checks passed
@ConradIrwin
Copy link
Member

Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
cla-signed The user has signed the Contributor License Agreement
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Some SendKeystrokes Keyboard Shortcuts Ending in a Space Character Type Out A Space
2 participants