diff options
author | rubidium <rubidium@openttd.org> | 2009-01-03 13:59:05 +0000 |
---|---|---|
committer | rubidium <rubidium@openttd.org> | 2009-01-03 13:59:05 +0000 |
commit | e5c1a7b5c3afcdfd0671b6476055822eba665205 (patch) | |
tree | f69467d5bbbf0587e6289219150ab4a8313edf8c /src/signs_gui.cpp | |
parent | 0d54db5f9fb3a3987f908645ca9693684f34674b (diff) | |
download | openttd-e5c1a7b5c3afcdfd0671b6476055822eba665205.tar.xz |
(svn r14804) -Codechange: unify opening the OSK (Zuu)
Diffstat (limited to 'src/signs_gui.cpp')
-rw-r--r-- | src/signs_gui.cpp | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/src/signs_gui.cpp b/src/signs_gui.cpp index fd7e62356..314a2fbf9 100644 --- a/src/signs_gui.cpp +++ b/src/signs_gui.cpp @@ -278,10 +278,6 @@ struct SignWindow : QueryStringBaseWindow, SignList { break; } - case QUERY_EDIT_SIGN_WIDGET_TEXT: - ShowOnScreenKeyboard(this, widget, QUERY_EDIT_SIGN_WIDGET_CANCEL, QUERY_EDIT_SIGN_WIDGET_OK); - break; - case QUERY_EDIT_SIGN_WIDGET_DELETE: /* Only need to set the buffer to null, the rest is handled as the OK button */ RenameSign(this->cur_sign, ""); @@ -319,6 +315,11 @@ struct SignWindow : QueryStringBaseWindow, SignList { { this->HandleEditBox(QUERY_EDIT_SIGN_WIDGET_TEXT); } + + virtual void OnOpenOSKWindow(int wid) + { + ShowOnScreenKeyboard(this, wid, QUERY_EDIT_SIGN_WIDGET_CANCEL, QUERY_EDIT_SIGN_WIDGET_OK); + } }; static const Widget _query_sign_edit_widgets[] = { |