diff options
author | rubidium <rubidium@openttd.org> | 2009-01-03 13:59:05 +0000 |
---|---|---|
committer | rubidium <rubidium@openttd.org> | 2009-01-03 13:59:05 +0000 |
commit | 72d89337eea73156b6667874444919695f1cca28 (patch) | |
tree | f69467d5bbbf0587e6289219150ab4a8313edf8c /src/network/network_chat_gui.cpp | |
parent | f31679662908a38f09415e319a8855e314f32d37 (diff) | |
download | openttd-72d89337eea73156b6667874444919695f1cca28.tar.xz |
(svn r14804) -Codechange: unify opening the OSK (Zuu)
Diffstat (limited to 'src/network/network_chat_gui.cpp')
-rw-r--r-- | src/network/network_chat_gui.cpp | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/src/network/network_chat_gui.cpp b/src/network/network_chat_gui.cpp index 56b86687e..4a1e209b3 100644 --- a/src/network/network_chat_gui.cpp +++ b/src/network/network_chat_gui.cpp @@ -448,10 +448,6 @@ struct NetworkChatWindow : public QueryStringBaseWindow { virtual void OnClick(Point pt, int widget) { switch (widget) { - case 2: - ShowOnScreenKeyboard(this, 2, 0, 3); - break; - case 3: /* Send */ SendChat(this->text.buf, this->dtype, this->dest); /* FALLTHROUGH */ @@ -485,6 +481,11 @@ struct NetworkChatWindow : public QueryStringBaseWindow { } return state; } + + virtual void OnOpenOSKWindow(int wid) + { + ShowOnScreenKeyboard(this, wid, 0, 3); + } }; static const Widget _chat_window_widgets[] = { |