forked from mirror/OpenTTD
(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.
This commit is contained in:
@@ -192,10 +192,6 @@ 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;
|
||||
|
Reference in New Issue
Block a user