mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-01-10 17:35:59 +00:00
wpesrc: Initialize key event to 0
Otherwise, WebKit sees random modifiers Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/2156>
This commit is contained in:
parent
2df32360b2
commit
3ca61ae0d3
1 changed files with 2 additions and 1 deletions
|
@ -588,7 +588,8 @@ gst_wpe_video_src_event (GstBaseSrc * base_src, GstEvent * event)
|
|||
hardware-level information, not high-level keysym strings */
|
||||
uint32_t keysym =
|
||||
(uint32_t) xkb_keysym_from_name (key, XKB_KEYSYM_NO_FLAGS);
|
||||
struct wpe_input_keyboard_event wpe_event;
|
||||
struct wpe_input_keyboard_event wpe_event = { 0 };
|
||||
|
||||
wpe_event.key_code = keysym;
|
||||
wpe_event.pressed =
|
||||
gst_navigation_event_get_type (event) ==
|
||||
|
|
Loading…
Reference in a new issue