diff options
author | dominik <dominik@openttd.org> | 2004-12-14 17:38:48 +0000 |
---|---|---|
committer | dominik <dominik@openttd.org> | 2004-12-14 17:38:48 +0000 |
commit | 23612e41f2a01b726d7aa9f29f45eb501cf71882 (patch) | |
tree | 72f658811e8b9980bf33a0469017c222b8ace2d7 /rail_gui.c | |
parent | a94da5937c1f960958383b05fdbebeda577a0c79 (diff) | |
download | openttd-23612e41f2a01b726d7aa9f29f45eb501cf71882.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 'rail_gui.c')
-rw-r--r-- | rail_gui.c | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/rail_gui.c b/rail_gui.c index ac22977e0..36d13ba74 100644 --- a/rail_gui.c +++ b/rail_gui.c @@ -613,10 +613,6 @@ static void BuildRailToolbWndProc(Window *w, WindowEvent *e) case WE_KEYPRESS: { int i; - // check if we have a query string window open before allowing hotkeys - if(FindWindowById(WC_QUERY_STRING, 0)!=NULL) - break; - for(i=0; i!=lengthof(_rail_keycodes); i++) if (e->keypress.keycode == _rail_keycodes[i]) { e->keypress.cont = false; |