Hangul inputs treat pre-edit text as output text and the pre-edit
text won't be moved with mouse click.
Now the reset signal is always emitted simply with mouse click and
each IM engine could handle the signal whether the preedit is committed,
cleared or kept.
Closes #1534
gtk_widget_get_modifier_mask (widget,
GDK_MODIFIER_INTENT_EXTEND_SELECTION));
- if (extend_selection)
- gtk_text_reset_im_context (self);
+ /* Always emit reset when preedit is shown */
+ priv->need_im_reset = TRUE;
+ gtk_text_reset_im_context (self);
switch (n_press)
{
gdk_device_get_source (device) == GDK_SOURCE_TOUCHSCREEN;
if (n_press == 1)
- gtk_text_view_reset_im_context (text_view);
+ {
+ /* Always emit reset when preedit is shown */
+ priv->need_im_reset = TRUE;
+ gtk_text_view_reset_im_context (text_view);
+ }
if (n_press == 1 &&
gdk_event_triggers_context_menu (event))