mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-10 03:19:40 +00:00
validate:gtk: Handle the case were we are 'pressing' only a modifier
This commit is contained in:
parent
09145cc56b
commit
0826c87136
1 changed files with 1 additions and 2 deletions
|
@ -137,7 +137,6 @@ _create_keyboard_events (GstValidateAction * action,
|
|||
return NULL;
|
||||
}
|
||||
|
||||
|
||||
device = get_device (action, GDK_SOURCE_KEYBOARD);
|
||||
if (device == NULL) {
|
||||
GST_VALIDATE_REPORT (action->scenario,
|
||||
|
@ -153,7 +152,7 @@ _create_keyboard_events (GstValidateAction * action,
|
|||
gtk_accelerator_parse_with_keycode (keyname, &keyval, &keys, &state);
|
||||
events =
|
||||
g_list_append (events, _create_key_event (window, etype, keyval,
|
||||
keys[0], state, device));
|
||||
keys ? keys[0] : 0, state, device));
|
||||
} else if (string) {
|
||||
gint i;
|
||||
|
||||
|
|
Loading…
Reference in a new issue