You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2026-01-03 19:11:41 +00:00
Merge pull request #83952 from AThousandShips/popup_crash
Ensure input event is valid in `PopupMenu::activate_item_by_event`
This commit is contained in:
@@ -2186,6 +2186,7 @@ void PopupMenu::scroll_to_item(int p_idx) {
|
||||
}
|
||||
|
||||
bool PopupMenu::activate_item_by_event(const Ref<InputEvent> &p_event, bool p_for_global_only) {
|
||||
ERR_FAIL_COND_V(p_event.is_null(), false);
|
||||
Key code = Key::NONE;
|
||||
Ref<InputEventKey> k = p_event;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user