summaryrefslogtreecommitdiffstats
path: root/modules/gridmap/editor
diff options
context:
space:
mode:
authorGeoffroy Warin <code@geowarin.com>2023-09-11 03:03:43 +0200
committerGeoffroy Warin <code@geowarin.com>2023-09-11 03:04:25 +0200
commit5f3cbcb55d2c4e1b08dbd30fbd3609ca91baec95 (patch)
treea6a35fffd26555e361e02ca3d81df3fc0796c422 /modules/gridmap/editor
parentfc99492d3066098e938449b10e02f8e01d07e2d1 (diff)
downloadredot-engine-5f3cbcb55d2c4e1b08dbd30fbd3609ca91baec95.tar.gz
fix some keys triggering their actions twice in GridMap
Diffstat (limited to 'modules/gridmap/editor')
-rw-r--r--modules/gridmap/editor/grid_map_editor_plugin.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/modules/gridmap/editor/grid_map_editor_plugin.cpp b/modules/gridmap/editor/grid_map_editor_plugin.cpp
index f96cc86142..6a20768583 100644
--- a/modules/gridmap/editor/grid_map_editor_plugin.cpp
+++ b/modules/gridmap/editor/grid_map_editor_plugin.cpp
@@ -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;
}