mirror of
https://github.com/tiennm99/godot.git
synced 2026-08-05 00:25:19 +00:00
Fix crashes in *_input functions
This commit is contained in:
@@ -34,6 +34,8 @@
|
||||
#include "scene/main/window.h"
|
||||
|
||||
void MenuButton::_unhandled_key_input(Ref<InputEvent> p_event) {
|
||||
ERR_FAIL_COND(p_event.is_null());
|
||||
|
||||
if (!_is_focus_owner_in_shorcut_context()) {
|
||||
return;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user