Do not show Physical in the special key names.

This commit is contained in:
Pāvels Nadtočajevs 2025-12-04 09:02:36 +02:00
parent 63e14e13f9
commit 36521091aa
No known key found for this signature in database
GPG key ID: 8413210218EF35D2
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") + ")";
}