forked from mirror/OpenTTD
(svn r1040) Fix: All character hotkeys are disabled now when a window for typing is open
This commit is contained in:
@@ -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;
|
||||
|
Reference in New Issue
Block a user