From 2b0b9a6367b993bf437d06236a9cca9025588dd6 Mon Sep 17 00:00:00 2001 From: yexo Date: Wed, 11 Mar 2009 09:21:11 +0000 Subject: (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. --- src/network/network_gui.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/network') 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; -- cgit v1.2.3-70-g09d2