(svn r14804) -Codechange: unify opening the OSK (Zuu)

This commit is contained in:
rubidium
2009-01-03 13:59:05 +00:00
parent 0d54db5f9f
commit e5c1a7b5c3
8 changed files with 35 additions and 33 deletions

View File

@@ -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[] = {