diff options
author | RĂ©mi Verschelde <remi@verschelde.fr> | 2021-09-15 13:20:40 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-09-15 13:20:40 +0200 |
commit | fbef32ab46e95a106a9628d61c635bbb3e8d3799 (patch) | |
tree | 7e33d65efb14aca7c9ae888f206de8756f8bbea9 | |
parent | eb1262f6ea1770c6ba5fef57d1242b6f7a73b54a (diff) | |
parent | 07a58230ea8cdc1f74356967924433cf543bd023 (diff) |
Merge pull request #52693 from akien-mga/fixup-inputmap-macos-override
InputMap: Fixup `macos` feature tag overrides after #52291
-rw-r--r-- | core/input/input_map.cpp | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/core/input/input_map.cpp b/core/input/input_map.cpp index a17faafc0c..c6db7be53a 100644 --- a/core/input/input_map.cpp +++ b/core/input/input_map.cpp @@ -703,11 +703,11 @@ void InputMap::load_default() { OrderedHashMap<String, List<Ref<InputEvent>>> builtins = get_builtins(); // List of Builtins which have an override for macOS. - Vector<String> osx_builtins; + Vector<String> macos_builtins; for (OrderedHashMap<String, List<Ref<InputEvent>>>::Element E = builtins.front(); E; E = E.next()) { if (String(E.key()).ends_with(".macos")) { // Strip .macos from name: some_input_name.macos -> some_input_name - osx_builtins.push_back(String(E.key()).split(".")[0]); + macos_builtins.push_back(String(E.key()).split(".")[0]); } } @@ -717,12 +717,12 @@ void InputMap::load_default() { String override_for = fullname.split(".").size() > 1 ? fullname.split(".")[1] : ""; #ifdef APPLE_STYLE_KEYS - if (osx_builtins.has(name) && override_for != "osx") { - // Name has `osx` builtin but this particular one is for non-macOS systems - so skip. + if (macos_builtins.has(name) && override_for != "macos") { + // Name has `macos` builtin but this particular one is for non-macOS systems - so skip. continue; } #else - if (override_for == "osx") { + if (override_for == "macos") { // Override for macOS - not needed on non-macOS platforms. continue; } |