diff options
author | dominik <dominik@openttd.org> | 2004-12-12 22:05:08 +0000 |
---|---|---|
committer | dominik <dominik@openttd.org> | 2004-12-12 22:05:08 +0000 |
commit | c466fcb3b2a8b9882618eb217c24fd2acdbbeca8 (patch) | |
tree | f7395153246eca640ab2e307bfa65b502eff689a /rail_gui.c | |
parent | a346f7cb54f6540100e35c2101b3eb0ba0188f2e (diff) | |
download | openttd-c466fcb3b2a8b9882618eb217c24fd2acdbbeca8.tar.xz |
(svn r1040) Fix: All character hotkeys are disabled now when a window for typing is open
Diffstat (limited to 'rail_gui.c')
-rw-r--r-- | rail_gui.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/rail_gui.c b/rail_gui.c index 271fedfb4..ac22977e0 100644 --- a/rail_gui.c +++ b/rail_gui.c @@ -612,6 +612,11 @@ 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; |