Merge pull request #81531 from geowarin/double-input-gridmap

Fix some keys triggering their actions twice in GridMap
This commit is contained in:
Rémi Verschelde 2023-09-14 23:40:10 +02:00
commit 84caaf9f2f
No known key found for this signature in database
GPG key ID: C3336907360768E1

View file

@ -749,6 +749,7 @@ EditorPlugin::AfterGUIInput GridMapEditor::forward_spatial_input_event(Camera3D
for (int i = 0; i < options->get_popup()->get_item_count(); ++i) {
const Ref<Shortcut> &shortcut = options->get_popup()->get_item_shortcut(i);
if (shortcut.is_valid() && shortcut->matches_event(p_event)) {
accept_event();
_menu_option(options->get_popup()->get_item_id(i));
return EditorPlugin::AFTER_GUI_INPUT_STOP;
}