st-entry: Handle <shift>insert

GTK+ supports this as alternative to <ctrl>v, so let's do the same
for consistency.

https://bugzilla.gnome.org/show_bug.cgi?id=648318
This commit is contained in:
Florian Müllner 2014-04-26 20:00:43 +02:00
parent 05ddece9a0
commit 24897169a9

View File

@ -599,8 +599,10 @@ st_entry_key_press_event (ClutterActor *actor,
didn't handle them */
/* paste */
if ((event->modifier_state & CLUTTER_CONTROL_MASK)
&& event->keyval == CLUTTER_v)
if (((event->modifier_state & CLUTTER_CONTROL_MASK)
&& event->keyval == CLUTTER_KEY_v) ||
((event->modifier_state & CLUTTER_SHIFT_MASK)
&& event->keyval == CLUTTER_KEY_Insert))
{
StClipboard *clipboard;