summaryrefslogtreecommitdiff
path: root/src/osk_gui.cpp
diff options
context:
space:
mode:
authormichi_cc <michi_cc@openttd.org>2013-08-05 20:37:02 +0000
committermichi_cc <michi_cc@openttd.org>2013-08-05 20:37:02 +0000
commit13873d2534208ddc4596a9354d23d1e4940339ac (patch)
treec0145e41d56780536e4a15f26eaad1249fe3132c /src/osk_gui.cpp
parentb96ef5c758ccb25e2ad780ea06c78c8b39df8ca8 (diff)
downloadopenttd-13873d2534208ddc4596a9354d23d1e4940339ac.tar.xz
(svn r25678) -Codechange: Notify the video driver when an edit box lost (global) focus so it can abort any current input composition.
Diffstat (limited to 'src/osk_gui.cpp')
-rw-r--r--src/osk_gui.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/osk_gui.cpp b/src/osk_gui.cpp
index 5dafdef11..2516c4dbf 100644
--- a/src/osk_gui.cpp
+++ b/src/osk_gui.cpp
@@ -16,6 +16,7 @@
#include "window_func.h"
#include "gfx_func.h"
#include "querystring_gui.h"
+#include "video/video_driver.hpp"
#include "widgets/osk_widget.h"
@@ -205,6 +206,7 @@ struct OskWindow : public Window {
virtual void OnFocusLost()
{
+ _video_driver->EditBoxLostFocus();
delete this;
}
};