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 | 2690ba03b210f45ee154cff4e8417f86eae78e77 (patch) | |
tree | f7395153246eca640ab2e307bfa65b502eff689a /road_gui.c | |
parent | 9e3ca26ae60b449ceb6db2e9c8ab4ed459b942c2 (diff) | |
download | openttd-2690ba03b210f45ee154cff4e8417f86eae78e77.tar.xz |
(svn r1040) Fix: All character hotkeys are disabled now when a window for typing is open
Diffstat (limited to 'road_gui.c')
-rw-r--r-- | road_gui.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/road_gui.c b/road_gui.c index 8374786b4..b1add67b0 100644 --- a/road_gui.c +++ b/road_gui.c @@ -192,6 +192,10 @@ 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; |