(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

@@ -278,10 +278,6 @@ struct SignWindow : QueryStringBaseWindow, SignList {
break;
}
case QUERY_EDIT_SIGN_WIDGET_TEXT:
ShowOnScreenKeyboard(this, widget, QUERY_EDIT_SIGN_WIDGET_CANCEL, QUERY_EDIT_SIGN_WIDGET_OK);
break;
case QUERY_EDIT_SIGN_WIDGET_DELETE:
/* Only need to set the buffer to null, the rest is handled as the OK button */
RenameSign(this->cur_sign, "");
@@ -319,6 +315,11 @@ struct SignWindow : QueryStringBaseWindow, SignList {
{
this->HandleEditBox(QUERY_EDIT_SIGN_WIDGET_TEXT);
}
virtual void OnOpenOSKWindow(int wid)
{
ShowOnScreenKeyboard(this, wid, QUERY_EDIT_SIGN_WIDGET_CANCEL, QUERY_EDIT_SIGN_WIDGET_OK);
}
};
static const Widget _query_sign_edit_widgets[] = {