[3.x] Release pressed events when the window is blurred on HTML5 platform

This commit is contained in:
Selgesel 2021-09-18 09:45:02 +03:00
parent 044cafc31a
commit c918b4d246
2 changed files with 7 additions and 0 deletions

View file

@ -72,6 +72,7 @@ private:
static Point2 compute_position_in_canvas(int x, int y);
static EM_BOOL fullscreen_change_callback(int p_event_type, const EmscriptenFullscreenChangeEvent *p_event, void *p_user_data);
static EM_BOOL blur_callback(int p_event_type, const EmscriptenFocusEvent *p_event, void *p_user_data);
static EM_BOOL keydown_callback(int p_event_type, const EmscriptenKeyboardEvent *p_event, void *p_user_data);
static EM_BOOL keypress_callback(int p_event_type, const EmscriptenKeyboardEvent *p_event, void *p_user_data);