1
0
mirror of https://github.com/godotengine/godot.git synced 2026-01-06 19:41:11 +00:00

Merge pull request #113553 from bruvzg/no_phy

Do not show `Physical` in the special key names.
This commit is contained in:
Rémi Verschelde
2025-12-04 15:53:01 +01:00
2 changed files with 27 additions and 7 deletions

View File

@@ -475,7 +475,10 @@ String InputEventKey::as_text() const {
} else if (keycode != Key::NONE) {
kc = keycode_get_string(keycode);
} else if (physical_keycode != Key::NONE) {
kc = keycode_get_string(physical_keycode) + " - " + RTR("Physical");
kc = keycode_get_string(physical_keycode);
if ((physical_keycode & Key::SPECIAL) != Key::SPECIAL) {
kc += " - " + RTR("Physical");
}
} else {
kc = "(" + RTR("unset") + ")";
}