(svn r24743) -Change: Unify the behaviour of ESC in filter editboxes.

This commit is contained in:
frosch
2012-11-14 22:50:39 +00:00
parent 18dcd2e6a4
commit 7b3d6cc31f
6 changed files with 30 additions and 3 deletions

View File

@@ -639,6 +639,7 @@ struct NewGRFWindow : public Window, NewGRFScanCallback {
this->FinishInitNested(desc, WN_GAME_OPTIONS_NEWGRF_STATE);
this->querystrings[WID_NS_FILTER] = &this->filter_editbox;
this->filter_editbox.cancel_button = QueryString::ACTION_CLEAR;
this->SetFocusedWidget(WID_NS_FILTER);
this->avails.SetListing(this->last_sorting);