Change the binding propagation when truncating a selection
If a selection has been truncated inside a key binding handler, we should just return and let the usual key event handler continue. This fixes the case where we deleted a selection using the Delete or the Backspace keys.
This commit is contained in:
parent
ec4c15f8e7
commit
35172a7615
@ -1274,7 +1274,7 @@ clutter_text_real_del_next (ClutterText *self,
|
|||||||
gint len;
|
gint len;
|
||||||
|
|
||||||
if (clutter_text_truncate_selection (self))
|
if (clutter_text_truncate_selection (self))
|
||||||
return FALSE;
|
return TRUE;
|
||||||
|
|
||||||
pos = priv->position;
|
pos = priv->position;
|
||||||
len = g_utf8_strlen (priv->text, -1);
|
len = g_utf8_strlen (priv->text, -1);
|
||||||
@ -1300,7 +1300,7 @@ clutter_text_real_del_prev (ClutterText *self,
|
|||||||
gint len;
|
gint len;
|
||||||
|
|
||||||
if (clutter_text_truncate_selection (self))
|
if (clutter_text_truncate_selection (self))
|
||||||
return FALSE;
|
return TRUE;
|
||||||
|
|
||||||
pos = priv->position;
|
pos = priv->position;
|
||||||
len = g_utf8_strlen (priv->text, -1);
|
len = g_utf8_strlen (priv->text, -1);
|
||||||
|
Loading…
Reference in New Issue
Block a user