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 /terraform_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 'terraform_gui.c')
-rw-r--r-- | terraform_gui.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/terraform_gui.c b/terraform_gui.c index 1f6099501..82cfffd96 100644 --- a/terraform_gui.c +++ b/terraform_gui.c @@ -121,6 +121,11 @@ static void TerraformToolbWndProc(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(_terraform_keycodes); i++) if (e->keypress.keycode == _terraform_keycodes[i]) { e->keypress.cont = false; |