summaryrefslogtreecommitdiff
path: root/src/network
diff options
context:
space:
mode:
authoryexo <yexo@openttd.org>2009-03-11 09:21:11 +0000
committeryexo <yexo@openttd.org>2009-03-11 09:21:11 +0000
commitfbe159ab9e9a71e8cef3c0352ae97bc02a131be5 (patch)
tree90bfe71b0685ad9f8fb2a7c2ad7a7ab4b4b1b36a /src/network
parent28c49b694a61cc5a5ec885a847ce8f781139b4bd (diff)
downloadopenttd-fbe159ab9e9a71e8cef3c0352ae97bc02a131be5.tar.xz
(svn r15669) -Change: Key presses that are not handles by an input box are no longer marked as handled but given to other OnKeyPress handlers. This makes the global shortcuts like F1 work again when an input box is open.
Diffstat (limited to 'src/network')
-rw-r--r--src/network/network_gui.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/network/network_gui.cpp b/src/network/network_gui.cpp
index 4edd09f8a..75046e487 100644
--- a/src/network/network_gui.cpp
+++ b/src/network/network_gui.cpp
@@ -1927,7 +1927,7 @@ struct NetworkCompanyPasswordWindow : public QueryStringBaseWindow {
virtual EventState OnKeyPress(uint16 key, uint16 keycode)
{
- EventState state;
+ EventState state = ES_NOT_HANDLED;
switch (this->HandleEditBoxKey(4, key, keycode, state)) {
default: break;