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:
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user