mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2024-12-26 13:41:07 +00:00
Merge branch 'textview-keynav-backspace' into 'main'
textview: Match entry behavior for backspace Closes #3417 See merge request GNOME/gtk!6203
This commit is contained in:
commit
b5b797b0aa
@ -6885,9 +6885,7 @@ gtk_text_view_delete_from_cursor (GtkTextView *text_view,
|
||||
|
||||
priv = text_view->priv;
|
||||
|
||||
if (type == GTK_DELETE_CHARS)
|
||||
{
|
||||
/* Char delete deletes the selection, if one exists */
|
||||
/* If a selection exists, we operate on it first */
|
||||
if (gtk_text_buffer_delete_selection (get_buffer (text_view), TRUE,
|
||||
priv->editable))
|
||||
{
|
||||
@ -6895,7 +6893,6 @@ gtk_text_view_delete_from_cursor (GtkTextView *text_view,
|
||||
gtk_text_view_reset_im_context (text_view);
|
||||
return;
|
||||
}
|
||||
}
|
||||
|
||||
gtk_text_buffer_get_iter_at_mark (get_buffer (text_view), &insert,
|
||||
gtk_text_buffer_get_insert (get_buffer (text_view)));
|
||||
|
Loading…
Reference in New Issue
Block a user