textview: Match entry behavior for backspace
authorMatthias Clasen <mclasen@redhat.com>
Sat, 22 Jul 2023 13:40:17 +0000 (09:40 -0400)
committerMatthias Clasen <mclasen@redhat.com>
Sat, 22 Jul 2023 13:40:17 +0000 (09:40 -0400)
commit9929726eb2abbb874ce6c83c7d9ee5b5bbcb8f28
treec57afe4cb18d8f4fea27b040355795d3d33822eb
parent87d2ce13322f21e2418183f229e214629ac8f25b
textview: Match entry behavior for backspace

As pointed out in #3417, there is a long-standing
difference in how GtkEntry and GtkTextView treat
Ctrl-Shift-Backspace (and other variations): GtkEntry
always operates on the selection first, if it exists.
GtkTextView only handled plain Backspace that way, and
ignores the selection for other variations.

There is no good reason for this difference, so just
remove it and make GtkTextView behave the same as
GtkEntry.

Fixes: #3417
gtk/gtktextview.c