mirror of
https://github.com/JetBrains/JetBrainsRuntime.git
synced 2025-12-06 01:19:28 +01:00
JBR-9719: Wayland: input methods in Speed search don't work if WLInputMethodZwpTextInputV3 logger is enabled
Resetting the text iterator of each InputMethodEvent after it gets logged.
(cherry picked from commit 3355214b43)
This commit is contained in:
committed by
jbrbot
parent
2e68c254c4
commit
c17ffe0e22
@@ -699,6 +699,10 @@ final class WLInputMethodZwpTextInputV3 extends InputMethodAdapter {
|
||||
String.format("awtPostIMESafely(...): posting a new InputMethodEvent=%s. this=%s.", ime, this),
|
||||
new Throwable("Stacktrace")
|
||||
);
|
||||
|
||||
// JBR-9719: reset ime's text iterator after logging
|
||||
final var textIterToReset = ime.getText();
|
||||
if (textIterToReset != null) textIterToReset.first();
|
||||
}
|
||||
|
||||
SunToolkit.postEvent(SunToolkit.targetToAppContext(clientComponent), ime);
|
||||
|
||||
Reference in New Issue
Block a user