Make Ctrl-u and Ctrl-k work in GtkTextView too

It doesn't make sense to have them work in entries, but not here.
This commit is contained in:
Matthias Clasen 2014-09-26 17:53:07 -04:00
parent 5da91504da
commit 5744bb3cf1

View File

@ -1429,6 +1429,15 @@ G_GNUC_END_IGNORE_DEPRECATIONS
G_TYPE_ENUM, GTK_DELETE_PARAGRAPH_ENDS,
G_TYPE_INT, -1);
gtk_binding_entry_add_signal (binding_set, GDK_KEY_u, GDK_CONTROL_MASK,
"delete-from-cursor", 2,
G_TYPE_ENUM, GTK_DELETE_PARAGRAPH_ENDS,
G_TYPE_INT, -1);
gtk_binding_entry_add_signal (binding_set, GDK_KEY_k, GDK_CONTROL_MASK,
"delete-from-cursor", 2,
G_TYPE_ENUM, GTK_DELETE_PARAGRAPH_ENDS,
G_TYPE_INT, 1);
/* Cut/copy/paste */
gtk_binding_entry_add_signal (binding_set, GDK_KEY_x, GDK_CONTROL_MASK,