summaryrefslogtreecommitdiff
path: root/terraform_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
commit23612e41f2a01b726d7aa9f29f45eb501cf71882 (patch)
tree72f658811e8b9980bf33a0469017c222b8ace2d7 /terraform_gui.c
parenta94da5937c1f960958383b05fdbebeda577a0c79 (diff)
downloadopenttd-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 'terraform_gui.c')
-rw-r--r--terraform_gui.c4
1 files changed, 0 insertions, 4 deletions
diff --git a/terraform_gui.c b/terraform_gui.c
index 82cfffd96..6c8f915e9 100644
--- a/terraform_gui.c
+++ b/terraform_gui.c
@@ -122,10 +122,6 @@ static void TerraformToolbWndProc(Window *w, WindowEvent *e)
{
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;