mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-02-21 05:26:23 +00:00
gst-play: Handle "space" key event correctly on Windows
The key name string given by GetKeyNameText() can have uppercase letter.
This commit is contained in:
parent
dcfa999e89
commit
0b44ac28b7
1 changed files with 2 additions and 1 deletions
|
@ -472,7 +472,8 @@ play_bus_msg (GstBus * bus, GstMessage * msg, gpointer user_data)
|
|||
key = GST_PLAY_KB_ARROW_UP;
|
||||
else if (strcmp (key, "Down") == 0)
|
||||
key = GST_PLAY_KB_ARROW_DOWN;
|
||||
else if (strcmp (key, "space") == 0)
|
||||
else if (strcmp (key, "space") == 0 ||
|
||||
strcmp (key, "Space") == 0)
|
||||
key = " ";
|
||||
else if (strlen (key) > 1)
|
||||
break;
|
||||
|
|
Loading…
Reference in a new issue