forked from mirror/OpenTTD
(svn r24728) -Codechange: Unify usage of OnOSKInput.
This commit is contained in:
@@ -298,7 +298,7 @@ struct SignListWindow : QueryStringBaseWindow, SignList {
|
||||
EventState state = ES_NOT_HANDLED;
|
||||
switch (this->HandleEditBoxKey(WID_SIL_FILTER_TEXT, key, keycode, state)) {
|
||||
case HEBR_EDITING:
|
||||
this->SetFilterString(this->text.buf);
|
||||
this->OnOSKInput(WID_SIL_FILTER_TEXT);
|
||||
break;
|
||||
|
||||
case HEBR_CONFIRM: // Enter pressed -> goto first sign in list
|
||||
@@ -325,8 +325,6 @@ struct SignListWindow : QueryStringBaseWindow, SignList {
|
||||
NOT_REACHED();
|
||||
}
|
||||
|
||||
if (state == ES_HANDLED) OnOSKInput(WID_SIL_FILTER_TEXT);
|
||||
|
||||
return state;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user