mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-08-29 18:50:45 +02:00
LCL-Gtk2: Do not reset IM after mouse click, otherwise the composition with pre-existing string will be broken. Patch by rasberryrabbit, issue #41123.
This commit is contained in:
parent
0e11791719
commit
c9260ad82c
@ -2203,7 +2203,12 @@ var
|
|||||||
if im_context_widget<>TargetWidget then
|
if im_context_widget<>TargetWidget then
|
||||||
begin
|
begin
|
||||||
//DebugLn(['CheckDeadKey init im_context ',GetWidgetDebugReport(TargetWidget)]);
|
//DebugLn(['CheckDeadKey init im_context ',GetWidgetDebugReport(TargetWidget)]);
|
||||||
ResetDefaultIMContext;
|
|
||||||
|
// After mouse click, first composition char isn't returned to pre-edit string.
|
||||||
|
// It has occurred with fcitx IM, but should happen with other IM like nabi too.
|
||||||
|
// So the following line is commented out to fix this.
|
||||||
|
//ResetDefaultIMContext;
|
||||||
|
|
||||||
im_context_widget:=TargetWidget;
|
im_context_widget:=TargetWidget;
|
||||||
gtk_im_context_set_client_window(im_context,GetControlWindow(TargetWidget));
|
gtk_im_context_set_client_window(im_context,GetControlWindow(TargetWidget));
|
||||||
//DebugLn(['CheckDeadKey im_context initialized']);
|
//DebugLn(['CheckDeadKey im_context initialized']);
|
||||||
|
Loading…
Reference in New Issue
Block a user