1
0
mirror of https://github.com/luanti-org/luanti.git synced 2025-12-29 09:35:22 +01:00

Translate key names in KeyPress::name() (#16779)

* Make KeyPress::name() return translated key names

* minor
This commit is contained in:
y5nw
2025-12-27 13:24:57 +01:00
committed by GitHub
parent 46436248de
commit 6fd46c05ae
3 changed files with 7 additions and 9 deletions

View File

@@ -25,7 +25,7 @@ void GUIButtonKey::setKey(KeyPress kp)
{
key_value = kp;
keysym = utf8_to_wide(kp.sym());
super::setText(wstrgettext(kp.name()).c_str());
super::setText(utf8_to_wide(kp.name()).c_str());
}
void GUIButtonKey::sendKey()