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.
This commit is contained in:
@@ -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