summaryrefslogtreecommitdiff
path: root/src/window.cpp
diff options
context:
space:
mode:
authormichi_cc <michi_cc@openttd.org>2013-08-05 20:36:20 +0000
committermichi_cc <michi_cc@openttd.org>2013-08-05 20:36:20 +0000
commit923eb009e8e3dafb224747e443fb366e76ec6b84 (patch)
treea2127a419e27327c3ef5ccc98e0717ef237829d1 /src/window.cpp
parent8b476de3bfa2864b51435e7fb4988e1550cf1d3a (diff)
downloadopenttd-923eb009e8e3dafb224747e443fb366e76ec6b84.tar.xz
(svn r25667) -Fix: [Win32] Only forward key presses to the IME system if an edit box has the input focus.
Diffstat (limited to 'src/window.cpp')
-rw-r--r--src/window.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/window.cpp b/src/window.cpp
index 9e64087b0..d3d9baadd 100644
--- a/src/window.cpp
+++ b/src/window.cpp
@@ -350,7 +350,7 @@ void SetFocusedWindow(Window *w)
* has a edit box as focused widget, or if a console is focused.
* @return returns true if an edit box is in global focus or if the focused window is a console, else false
*/
-static bool EditBoxInGlobalFocus()
+bool EditBoxInGlobalFocus()
{
if (_focused_window == NULL) return false;