1
0
mirror of https://github.com/godotengine/godot.git synced 2025-11-10 13:00:37 +00:00

Use "Command" instead of "Meta" for macOS (#1619)

This commit is contained in:
Cong
2017-10-08 17:23:05 +10:00
parent 0fb22b1d24
commit dd684eaaa0
3 changed files with 40 additions and 12 deletions

View File

@@ -270,16 +270,16 @@ String InputEventKey::as_text() const {
return kc;
if (get_metakey()) {
kc = "Meta+" + kc;
kc = find_keycode_name(KEY_META) + ("+" + kc);
}
if (get_alt()) {
kc = "Alt+" + kc;
kc = find_keycode_name(KEY_ALT) + ("+" + kc);
}
if (get_shift()) {
kc = "Shift+" + kc;
kc = find_keycode_name(KEY_SHIFT) + ("+" + kc);
}
if (get_control()) {
kc = "Ctrl+" + kc;
kc = find_keycode_name(KEY_CONTROL) + ("+" + kc);
}
return kc;
}