1
0
mirror of https://github.com/OpenTTD/OpenTTD.git synced 2025-08-19 20:49:11 +00:00

(svn r25668) -Codechange: Pass proper Unicode UCS-4 characters instead of just UCS-2 to the window key press handlers.

This commit is contained in:
michi_cc
2013-08-05 20:36:24 +00:00
parent 923eb009e8
commit b911f4a452
12 changed files with 13 additions and 12 deletions

View File

@@ -491,7 +491,7 @@ struct NetworkChatWindow : public Window {
}
}
virtual EventState OnKeyPress(uint16 key, uint16 keycode)
virtual EventState OnKeyPress(WChar key, uint16 keycode)
{
EventState state = ES_NOT_HANDLED;
if (keycode == WKC_TAB) {

View File

@@ -800,7 +800,7 @@ public:
}
}
virtual EventState OnKeyPress(uint16 key, uint16 keycode)
virtual EventState OnKeyPress(WChar key, uint16 keycode)
{
switch (keycode) {
case WKC_UP:

View File

@@ -799,7 +799,7 @@ public:
this->SetDirty();
}
virtual EventState OnKeyPress(uint16 key, uint16 keycode)
virtual EventState OnKeyPress(WChar key, uint16 keycode)
{
EventState state = ES_NOT_HANDLED;