You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-07 12:30:27 +00:00
fix some keys triggering their actions twice in GridMap
This commit is contained in:
@@ -749,6 +749,7 @@ EditorPlugin::AfterGUIInput GridMapEditor::forward_spatial_input_event(Camera3D
|
|||||||
for (int i = 0; i < options->get_popup()->get_item_count(); ++i) {
|
for (int i = 0; i < options->get_popup()->get_item_count(); ++i) {
|
||||||
const Ref<Shortcut> &shortcut = options->get_popup()->get_item_shortcut(i);
|
const Ref<Shortcut> &shortcut = options->get_popup()->get_item_shortcut(i);
|
||||||
if (shortcut.is_valid() && shortcut->matches_event(p_event)) {
|
if (shortcut.is_valid() && shortcut->matches_event(p_event)) {
|
||||||
|
accept_event();
|
||||||
_menu_option(options->get_popup()->get_item_id(i));
|
_menu_option(options->get_popup()->get_item_id(i));
|
||||||
return EditorPlugin::AFTER_GUI_INPUT_STOP;
|
return EditorPlugin::AFTER_GUI_INPUT_STOP;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user