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:
@@ -613,10 +613,6 @@ static void BuildRailToolbWndProc(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(_rail_keycodes); i++)
|
||||
if (e->keypress.keycode == _rail_keycodes[i]) {
|
||||
e->keypress.cont = false;
|
||||
|
Reference in New Issue
Block a user