X-Git-Url: http://deadsoftware.ru/gitweb?p=d2df-sdl.git;a=blobdiff_plain;f=src%2Fgame%2Fg_console.pas;h=63454eb1cb52dbf1ad6b6014a971926559679f5b;hp=11170326ca66b02c8f09a200297df5e7e6263e86;hb=2f4ef61a594006d1da7ec293ab72502d5d6ba241;hpb=5eaf38a53865288793931062dedeedc497075144 diff --git a/src/game/g_console.pas b/src/game/g_console.pas index 1117032..63454eb 100644 --- a/src/game/g_console.pas +++ b/src/game/g_console.pas @@ -1721,13 +1721,13 @@ begin Result := g_Console_MatchBind(key, 'togglemenu') or g_Console_MatchBind(key, 'showkeyboard') or g_Console_MatchBind(key, 'hidekeyboard') - else if (gGameSettings.GameType <> GT_NONE) and not gConsoleShow then - Result := True - else (* if CONSOLE or MENU then *) + else if gConsoleShow or (g_ActiveWindow <> nil) or (gGameSettings.GameType = GT_NONE) then Result := g_Console_MatchBind(key, 'togglemenu') or g_Console_MatchBind(key, 'toggleconsole') or g_Console_MatchBind(key, 'showkeyboard') or g_Console_MatchBind(key, 'hidekeyboard') + else (* in game *) + Result := True end end;