summaryrefslogtreecommitdiff
path: root/src/querystring_gui.h
diff options
context:
space:
mode:
authorfrosch <frosch@openttd.org>2012-11-28 21:14:28 +0000
committerfrosch <frosch@openttd.org>2012-11-28 21:14:28 +0000
commit5dfd5e58ee58cc8205c430075ec1325aa9fda0ca (patch)
treedcd42222d5d1492237a22e24f0f85cffb93a4a16 /src/querystring_gui.h
parentbfba90f8648cdb8b10ddd1322f46411761a9c29b (diff)
downloadopenttd-5dfd5e58ee58cc8205c430075ec1325aa9fda0ca.tar.xz
(svn r24774) -Fix: Invert the focus handling of the OSK. Keep the focus at the OSK and close it on losing focus. This makes the editbox in the OSK behave correctly.
Diffstat (limited to 'src/querystring_gui.h')
-rw-r--r--src/querystring_gui.h3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/querystring_gui.h b/src/querystring_gui.h
index 42facf70a..a7916a801 100644
--- a/src/querystring_gui.h
+++ b/src/querystring_gui.h
@@ -62,8 +62,6 @@ struct QueryString {
free(this->orig);
}
-private:
- bool HasEditBoxFocus(const Window *w, int wid) const;
public:
void DrawEditBox(const Window *w, int wid) const;
void ClickEditBox(Window *w, Point pt, int wid, int click_count, bool focus_changed);
@@ -73,5 +71,6 @@ public:
void ShowOnScreenKeyboard(Window *parent, int button);
void UpdateOSKOriginalText(const Window *parent, int button);
+bool IsOSKOpenedFor(const Window *w, int button);
#endif /* QUERYSTRING_GUI_H */