diff src/network/network_gui.cpp @ 11319:340c5c4473f7 draft

(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.
author yexo <yexo@openttd.org>
date Wed, 11 Mar 2009 09:21:11 +0000 (2009-03-11)
parents 2f792e7a69dd
children 02313cc6114e
line wrap: on
line diff
--- a/src/network/network_gui.cpp
+++ b/src/network/network_gui.cpp
@@ -1927,7 +1927,7 @@
 
 	virtual EventState OnKeyPress(uint16 key, uint16 keycode)
 	{
-		EventState state;
+		EventState state = ES_NOT_HANDLED;
 		switch (this->HandleEditBoxKey(4, key, keycode, state)) {
 			default: break;