1
0
mirror of https://github.com/OpenTTD/OpenTTD.git synced 2025-08-19 12:39:11 +00:00

(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 f5d8ba5d7f
commit c283a41248
6 changed files with 30 additions and 3 deletions

View File

@@ -418,6 +418,7 @@ public:
this->GetWidget<NWidgetStacked>(WID_NCL_SEL_ALL_UPDATE)->SetDisplayedPlane(select_all);
this->querystrings[WID_NCL_FILTER] = &this->filter_editbox;
this->filter_editbox.cancel_button = QueryString::ACTION_CLEAR;
this->filter_editbox.afilter = CS_ALPHANUMERAL;
this->SetFocusedWidget(WID_NCL_FILTER);