diff options
author | frosch <frosch@openttd.org> | 2012-11-14 22:50:39 +0000 |
---|---|---|
committer | frosch <frosch@openttd.org> | 2012-11-14 22:50:39 +0000 |
commit | c283a412485700ab8e81a374f080c1ef94fbf64d (patch) | |
tree | 4673dc71eac8f915dcbc6b846213157096260357 /src/newgrf_gui.cpp | |
parent | f5d8ba5d7f90abc72db6c0470da383ecf82da487 (diff) | |
download | openttd-c283a412485700ab8e81a374f080c1ef94fbf64d.tar.xz |
(svn r24743) -Change: Unify the behaviour of ESC in filter editboxes.
Diffstat (limited to 'src/newgrf_gui.cpp')
-rw-r--r-- | src/newgrf_gui.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/newgrf_gui.cpp b/src/newgrf_gui.cpp index bf6487d10..c5abe1198 100644 --- a/src/newgrf_gui.cpp +++ b/src/newgrf_gui.cpp @@ -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); |