From 32fc6b939cd49aec103741add1eb24e144a3f2bf Mon Sep 17 00:00:00 2001 From: Robert Yevdokimov <105675984+ryevdokimov@users.noreply.github.com> Date: Sun, 11 Jan 2026 12:59:39 -0500 Subject: [PATCH] Fixed modified editor shortcuts being erased on MacOS --- editor/settings/editor_settings.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/editor/settings/editor_settings.cpp b/editor/settings/editor_settings.cpp index 0412cdaebca..5ddf60ab8b1 100644 --- a/editor/settings/editor_settings.cpp +++ b/editor/settings/editor_settings.cpp @@ -1955,7 +1955,6 @@ void EditorSettings::add_shortcut(const String &p_path, const Ref &p_s p_shortcut->set_name(shortcut_name); } shortcuts[p_path] = p_shortcut; - shortcuts[p_path]->set_meta("customized", true); } void EditorSettings::remove_shortcut(const String &p_path) { @@ -2084,7 +2083,7 @@ void ED_SHORTCUT_OVERRIDE_ARRAY(const String &p_path, const String &p_feature, c } // Override the existing shortcut only if it wasn't customized by the user. - if (!sc->has_meta("customized")) { + if (Shortcut::is_event_array_equal(sc->get_events(), sc->get_meta("original"))) { sc->set_events(events); }