Skip to content
This repository has been archived by the owner on May 13, 2024. It is now read-only.

[SDL] Improve handling of IMEs #285

Merged
merged 6 commits into from Feb 8, 2024

Conversation

y5nw
Copy link
Contributor

@y5nw y5nw commented Feb 7, 2024

This PR sets the text input rectangle when text input is used. It allows (among other things) IMEs to position the text input candidate list correctly.

The screenshots below demonstrate the difference. In both screenshots, the "World name" input box is focused.

Before:
2024-02-07-20-50-22

After:
2024-02-07-20-57-00

This also (at least partially) fixes minetest/minetest#13473 (dead keys and compose keys do seem to work under IBus for me now) by not restarting text input when this is not necessary.

@y5nw y5nw marked this pull request as draft February 7, 2024 20:16
@y5nw y5nw marked this pull request as ready for review February 7, 2024 20:18
Copy link
Contributor

@appgurueu appgurueu left a comment

Choose a reason for hiding this comment

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

Thanks for the PR. I have some comments. The first two are minor style issues, the last one is probably important.

source/Irrlicht/CIrrDeviceSDL.cpp Outdated Show resolved Hide resolved
source/Irrlicht/CIrrDeviceSDL.cpp Outdated Show resolved Hide resolved
source/Irrlicht/CIrrDeviceSDL.cpp Outdated Show resolved Hide resolved
@appgurueu appgurueu added the enhancement New feature or request label Feb 7, 2024
@y5nw y5nw requested a review from appgurueu February 7, 2024 20:52
Copy link
Contributor

@appgurueu appgurueu left a comment

Choose a reason for hiding this comment

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

Looks good, makes sense.

@y5nw y5nw marked this pull request as draft February 7, 2024 23:24
@y5nw
Copy link
Contributor Author

y5nw commented Feb 7, 2024

Actually I think I can fix another (semi-related) bug while I am at it.

Edit: done.

@y5nw y5nw changed the title [SDL] Set text input rectangle for IMEs [SDL] Improve handling of IMEs Feb 7, 2024
@y5nw y5nw marked this pull request as ready for review February 7, 2024 23:49
@appgurueu appgurueu merged commit 6779ac8 into minetest:master Feb 8, 2024
19 checks passed
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
enhancement New feature or request One approval
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Using IBus breaks non-Latin input in Minetest
3 participants