summaryrefslogtreecommitdiff
path: root/road_gui.c
diff options
context:
space:
mode:
authordominik <dominik@openttd.org>2004-12-14 17:38:48 +0000
committerdominik <dominik@openttd.org>2004-12-14 17:38:48 +0000
commit6189664ad3a7e2d199f5d0a05483f50e78c04fd2 (patch)
tree72f658811e8b9980bf33a0469017c222b8ace2d7 /road_gui.c
parent07367a113ca3a7f4731c2bf49a6781204ba2eeea (diff)
downloadopenttd-6189664ad3a7e2d199f5d0a05483f50e78c04fd2.tar.xz
(svn r1084) Generalized hotkey catching when textfield windows are open. Now only hotkeys attached to the main toolbar are working if you have a textfield open.
Diffstat (limited to 'road_gui.c')
-rw-r--r--road_gui.c4
1 files changed, 0 insertions, 4 deletions
diff --git a/road_gui.c b/road_gui.c
index b1add67b0..8374786b4 100644
--- a/road_gui.c
+++ b/road_gui.c
@@ -192,10 +192,6 @@ static void BuildRoadToolbWndProc(Window *w, WindowEvent *e) {
} break;
case WE_KEYPRESS:
- // check if we have a query string window open before allowing hotkeys
- if(FindWindowById(WC_QUERY_STRING, 0)!=NULL)
- break;
-
switch(e->keypress.keycode) {
case '1': BuildRoadClick_NE(w); break;
case '2': BuildRoadClick_NW(w); break;