mirror of
https://github.com/OpenTTD/OpenTTD.git
synced 2025-03-09 07:29:44 +00:00
(svn r20139) -Fix [FS#3902]: Found town window ignored all hotkeys (Zuu).
This commit is contained in:
parent
0dde0a7585
commit
e9793b3427
@ -1188,7 +1188,7 @@ public:
|
|||||||
|
|
||||||
virtual EventState OnKeyPress(uint16 key, uint16 keycode)
|
virtual EventState OnKeyPress(uint16 key, uint16 keycode)
|
||||||
{
|
{
|
||||||
EventState state;
|
EventState state = ES_NOT_HANDLED;
|
||||||
if (this->HandleEditBoxKey(TSEW_TOWNNAME_EDITBOX, key, keycode, state) == HEBR_CANCEL) {
|
if (this->HandleEditBoxKey(TSEW_TOWNNAME_EDITBOX, key, keycode, state) == HEBR_CANCEL) {
|
||||||
this->UnfocusFocusedWidget();
|
this->UnfocusFocusedWidget();
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user