(svn r1040) Fix: All character hotkeys are disabled now when a window for typing is open

This commit is contained in:
dominik
2004-12-12 22:05:08 +00:00
parent a346f7cb54
commit c466fcb3b2
4 changed files with 23 additions and 2 deletions

View File

@@ -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;