summaryrefslogtreecommitdiff
path: root/src/misc_gui.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/misc_gui.cpp')
-rw-r--r--src/misc_gui.cpp27
1 files changed, 0 insertions, 27 deletions
diff --git a/src/misc_gui.cpp b/src/misc_gui.cpp
index fbd3345e2..1391dbada 100644
--- a/src/misc_gui.cpp
+++ b/src/misc_gui.cpp
@@ -811,33 +811,6 @@ void QueryString::DrawEditBox(const Window *w, int wid) const
_cur_dpi = old_dpi;
}
-EventState QueryStringBaseWindow::HandleEditBoxKey(int wid, uint16 key, uint16 keycode)
-{
- EventState state = ES_NOT_HANDLED;
- switch (this->QueryString::HandleEditBoxKey(this, wid, key, keycode, state)) {
- case HEBR_EDITING:
- this->OnEditboxChanged(wid);
- break;
-
- case HEBR_CONFIRM:
- if (this->ok_button >= 0) {
- this->OnClick(Point(), this->ok_button, 1);
- }
- break;
-
- case HEBR_CANCEL:
- if (this->cancel_button >= 0) {
- this->OnClick(Point(), this->cancel_button, 1);
- } else {
- this->UnfocusFocusedWidget();
- }
- break;
-
- default: break;
- }
- return state;
-}
-
/** Class for the string query window. */
struct QueryStringWindow : public QueryStringBaseWindow
{