summaryrefslogtreecommitdiff
path: root/src/misc_gui.cpp
diff options
context:
space:
mode:
authorfrosch <frosch@openttd.org>2012-11-13 21:47:13 +0000
committerfrosch <frosch@openttd.org>2012-11-13 21:47:13 +0000
commitfc2b12acca38964ed91d35e3d5c4aae20d992e7f (patch)
treeb2234ccb73cc28f3a8cc64600296c5b55954edf2 /src/misc_gui.cpp
parent2c22fe98ddae45d1553003a00a7ea0a301e9aa99 (diff)
downloadopenttd-fc2b12acca38964ed91d35e3d5c4aae20d992e7f.tar.xz
(svn r24735) -Codechange: Move HandleEditBoxKey to Window class.
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
{