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: Fix deadkey sequences ending with space #1930

Merged
merged 2 commits into from Jul 31, 2023

Conversation

fredizzimo
Copy link
Member

What kind of change does this PR introduce?

  • Fix

A dead key followed by space will usually result in the character itself. However, Neovide resolved this wrongly, and always treated space as a special key, so the sequence was resolved as space instead.

Did this PR introduce a breaking change?

  • No

A dead key followed by space will usually result in the character
itself. However, Neovide resolved this wrongly, and always treated
space as a special key, so the sequence was resolved as space instead.
@fredizzimo
Copy link
Member Author

This fix is for some reason not working in X11, but in Wayland it does.

I will try to figure out what's wrong.

@fredizzimo
Copy link
Member Author

The problem on X11 was just a merge mistake in the "Smooth rendering" branch. The current version of Winit requires IME to be enabled on X11 for dead keys to work, but the "Smooth rendering" branch disables it by default.

@fredizzimo fredizzimo mentioned this pull request Jul 23, 2023
match key {
Key::Backspace => Some("BS"),
Key::Space => Some("Space"),
Key::Space => {
// Space can finish a dead key sequence, so only threat space as a special key when
Copy link
Contributor

Choose a reason for hiding this comment

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

Typo

Suggested change
// Space can finish a dead key sequence, so only threat space as a special key when
// Space can finish a dead key sequence, so only treat space as a special key when

@MultisampledNight MultisampledNight merged commit de22d0c into neovide:main Jul 31, 2023
2 checks passed
@MultisampledNight
Copy link
Contributor

Thank you!

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