-
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
Handle the IME event first in TextEdit
to fix some bugs
#4794
Merged
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
emilk
requested changes
Jul 7, 2024
emilk
changed the title
Handle the
Handle the Jul 7, 2024
IME
event first IME
event first in TextEdit
to fix some bugs
emilk
changed the title
Handle the
Handle the IME event first in Jul 7, 2024
IME
event first in TextEdit
to fix some bugsTextEdit
to fix some bugs
emilk
approved these changes
Jul 7, 2024
This was referenced Aug 1, 2024
emilk
pushed a commit
that referenced
this pull request
Aug 5, 2024
Fix: Changed the handling method of `Ime::Preedit(_, None)` Fix: backspace fail after ime input * Related #4358 * Related #4430 * Related #4436 * Related #4794 * Related #4896 * Closes #4908 Issues: backspace fail after ime input * #4908 (Chinese) Changed the handling method of `Ime::Preedit(_, None)`
emilk
pushed a commit
that referenced
this pull request
Aug 28, 2024
…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`. )
rib
pushed a commit
to EmbarkStudios/egui
that referenced
this pull request
Sep 30, 2024
Fix: Changed the handling method of `Ime::Preedit(_, None)` Fix: backspace fail after ime input * Related emilk#4358 * Related emilk#4430 * Related emilk#4436 * Related emilk#4794 * Related emilk#4896 * Closes emilk#4908 Issues: backspace fail after ime input * emilk#4908 (Chinese) Changed the handling method of `Ime::Preedit(_, None)`
486c
pushed a commit
to 486c/egui
that referenced
this pull request
Oct 9, 2024
Handle the `IME` event first There is a need to handle the Ime event first. Fix Issues : When you press `BackSpace`, the entire text is erased, and when you press another letter, it appears again. Fix Issues : When you press `Left`, the character being entered will be copied once more. Fix Issues : When you press `Enter`, `Enter` with `repeat` set is entered and `Enter` is entered twice. Fix Issues : When you press a key in `IME` mode, `repeat` is often set. Fix Issues : Since you may be selecting something in the IME, this also disables the `Arrow` keys.
486c
pushed a commit
to 486c/egui
that referenced
this pull request
Oct 9, 2024
Fix: Changed the handling method of `Ime::Preedit(_, None)` Fix: backspace fail after ime input * Related emilk#4358 * Related emilk#4430 * Related emilk#4436 * Related emilk#4794 * Related emilk#4896 * Closes emilk#4908 Issues: backspace fail after ime input * emilk#4908 (Chinese) Changed the handling method of `Ime::Preedit(_, None)`
486c
pushed a commit
to 486c/egui
that referenced
this pull request
Oct 9, 2024
…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`. )
hacknus
pushed a commit
to hacknus/egui
that referenced
this pull request
Oct 30, 2024
Handle the `IME` event first There is a need to handle the Ime event first. Fix Issues : When you press `BackSpace`, the entire text is erased, and when you press another letter, it appears again. Fix Issues : When you press `Left`, the character being entered will be copied once more. Fix Issues : When you press `Enter`, `Enter` with `repeat` set is entered and `Enter` is entered twice. Fix Issues : When you press a key in `IME` mode, `repeat` is often set. Fix Issues : Since you may be selecting something in the IME, this also disables the `Arrow` keys.
hacknus
pushed a commit
to hacknus/egui
that referenced
this pull request
Oct 30, 2024
Fix: Changed the handling method of `Ime::Preedit(_, None)` Fix: backspace fail after ime input * Related emilk#4358 * Related emilk#4430 * Related emilk#4436 * Related emilk#4794 * Related emilk#4896 * Closes emilk#4908 Issues: backspace fail after ime input * emilk#4908 (Chinese) Changed the handling method of `Ime::Preedit(_, None)`
hacknus
pushed a commit
to hacknus/egui
that referenced
this pull request
Oct 30, 2024
…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`. )
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Handle the
IME
event firstThere is a need to handle the Ime event first.
Fix Issues : When you press
BackSpace
, the entire text is erased, and when you press another letter, it appears again.Fix Issues : When you press
Left
, the character being entered will be copied once more.Fix Issues : When you press
Enter
,Enter
withrepeat
set is entered andEnter
is entered twice.Fix Issues : When you press a key in
IME
mode,repeat
is often set.Fix Issues : Since you may be selecting something in the IME, this also disables the
Arrow
keys.