-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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
eframe Linux: Backspace & arrow keys are completely broken #5008
Comments
Could you check if applying #4896 fixes the issue? |
I tried your branch on rev 6ef2ef5, |
It's strange. The issue only happens when If |
You are right, it's most likely not related to your merge request
maybe a regression there: Sadly it affects egui too |
Yes. There seem to be a lot of bug reports related to IME in |
…oses focus. (#4896) Fix: Ensures correct IME behavior when the text input area gains or loses focus. Fix: Handling `state.ime_enabled` in multiple `TextEdit`. Fix: A symptom of characters being copied when there are multiple TextEdits. * Related #4137 * Related #4358 * Closes #4374 * Related #4436 * Related #4794 * Related #4908 * Related #5008 Fix Issues: When focus is moved elsewhere, you must set `state.ime_enabled = false`, otherwise the IME will have problems when focus returns. Fix Issues: A symptom of characters being copied when there are multiple TextEdits. Deletes all current `IME events`, preventing them from being copied to `other TextEdits`, without saving the `TextEdit ID`, ( Related Issues: Some `LINUX` seem to trigger an IME enable event on startup. So, when we gained focus, we do `state.ime_enabled = false`. )
@StarStarJ |
Yes, still buggy. |
Could you please check if this can be solved with #5085?
|
Yes that fixes it as well |
Just as a future note: This should have been labeled regression, and blocked the 0.29 release. If not outright block the release, there should be a bold Known regressions
section in the changelog. |
In the meantime, I made a small patch that just ignores IME events in egui-winit # Fix text input being broken on Linux X11
[patch.crates-io.egui-winit]
git = "https://github.com/crumblingstatue/egui.git"
branch = "ime-ignore"
[patch.crates-io.egui]
git = "https://github.com/crumblingstatue/egui.git"
branch = "ime-ignore" |
@crumblingstatue |
Yes, it disables IME events completely. So IME support is removed on all targets. |
Ive had to lookup what IME is and yeah... Not relevant for me. Thank you for explaining. |
…oses focus. (emilk#4896) Fix: Ensures correct IME behavior when the text input area gains or loses focus. Fix: Handling `state.ime_enabled` in multiple `TextEdit`. Fix: A symptom of characters being copied when there are multiple TextEdits. * Related emilk#4137 * Related emilk#4358 * Closes emilk#4374 * Related emilk#4436 * Related emilk#4794 * Related emilk#4908 * Related emilk#5008 Fix Issues: When focus is moved elsewhere, you must set `state.ime_enabled = false`, otherwise the IME will have problems when focus returns. Fix Issues: A symptom of characters being copied when there are multiple TextEdits. Deletes all current `IME events`, preventing them from being copied to `other TextEdits`, without saving the `TextEdit ID`, ( Related Issues: Some `LINUX` seem to trigger an IME enable event on startup. So, when we gained focus, we do `state.ime_enabled = false`. )
…oses focus. (emilk#4896) Fix: Ensures correct IME behavior when the text input area gains or loses focus. Fix: Handling `state.ime_enabled` in multiple `TextEdit`. Fix: A symptom of characters being copied when there are multiple TextEdits. * Related emilk#4137 * Related emilk#4358 * Closes emilk#4374 * Related emilk#4436 * Related emilk#4794 * Related emilk#4908 * Related emilk#5008 Fix Issues: When focus is moved elsewhere, you must set `state.ime_enabled = false`, otherwise the IME will have problems when focus returns. Fix Issues: A symptom of characters being copied when there are multiple TextEdits. Deletes all current `IME events`, preventing them from being copied to `other TextEdits`, without saving the `TextEdit ID`, ( Related Issues: Some `LINUX` seem to trigger an IME enable event on startup. So, when we gained focus, we do `state.ime_enabled = false`. )
* Closes emilk#5008 * Closes emilk#5182 * Bug introduced in emilk#4912 I suspect this will make IME no longer work on Linux, though I don't know if it ever worked. I rather have backspace/arrows working though. Please help test this (I don't have Linux!) # Tested on * [x] Mac * [ ] Linux Wayland * [x] Linux X11
I use the latest master from egui (a9a6e0c), and run the egui_demo_app on x11 linux (no IME). I can't use arrows or backspace in a text edit
Maybe it is related to this issue:
To Reproduce
Steps to reproduce the behavior:
Simply start the demo app (native) and the keys wont work
Desktop (please complete the following information):
The text was updated successfully, but these errors were encountered: