Merge pull request #62633 from linkpy/61508_fix

This commit is contained in:
Rémi Verschelde 2022-07-02 16:26:35 +02:00 committed by GitHub
commit 0b5b39d536
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -268,7 +268,14 @@ uint32_t InputEventKey::get_physical_scancode_with_modifiers() const {
}
String InputEventKey::as_text() const {
String kc = keycode_get_string(scancode);
String kc;
if (scancode == 0) {
kc = keycode_get_string(physical_scancode) + " (" + RTR("Physical") + ")";
} else {
kc = keycode_get_string(scancode);
}
if (kc == String()) {
return kc;
}