(svn r24733) -Codechange: Move handling of editbox keys to window class.

This commit is contained in:
frosch
2012-11-13 21:47:02 +00:00
parent 8f611527e9
commit 08e92e6f23
13 changed files with 34 additions and 94 deletions

View File

@@ -1262,12 +1262,8 @@ struct NewGRFWindow : public QueryStringBaseWindow, NewGRFScanCallback {
this->avail_pos = this->avails.Length() - 1;
break;
default: {
/* Handle editbox input */
EventState state = ES_NOT_HANDLED;
this->HandleEditBoxKey(WID_NS_FILTER, key, keycode, state);
return state;
}
default:
return ES_NOT_HANDLED;
}
if (this->avails.Length() == 0) this->avail_pos = -1;