diff --git a/src/misc_gui.cpp b/src/misc_gui.cpp index 2fa1ee4493..bd27e065b7 100644 --- a/src/misc_gui.cpp +++ b/src/misc_gui.cpp @@ -1046,7 +1046,7 @@ void QueryString::DrawEditBox(Window *w, int wid) _cur_dpi = old_dpi; } -int QueryStringBaseWindow::HandleEditBoxKey(int wid, uint16 key, uint16 keycode, EventState &state) +HandleEditBoxResult QueryStringBaseWindow::HandleEditBoxKey(int wid, uint16 key, uint16 keycode, EventState &state) { return this->QueryString::HandleEditBoxKey(this, wid, key, keycode, state); } diff --git a/src/querystring_gui.h b/src/querystring_gui.h index 42f8d44fbd..2e7bf17365 100644 --- a/src/querystring_gui.h +++ b/src/querystring_gui.h @@ -66,7 +66,7 @@ struct QueryStringBaseWindow : public Window, public QueryString { void DrawEditBox(int wid); void HandleEditBox(int wid); - int HandleEditBoxKey(int wid, uint16 key, uint16 keycode, EventState &state); + HandleEditBoxResult HandleEditBoxKey(int wid, uint16 key, uint16 keycode, EventState &state); virtual void OnOpenOSKWindow(int wid); };