Make the console escape key handling support the fonticon autocomplete

This commit is contained in:
Jan 2021-09-21 22:07:30 +02:00
parent 93d28c3644
commit 256c96d413

View File

@ -413,6 +413,9 @@ namespace Components
if (Game::Con_CancelAutoComplete()) if (Game::Con_CancelAutoComplete())
return; return;
if (TextRenderer::HandleFontIconAutocompleteKey(0, TextRenderer::FONT_ICON_ACI_CONSOLE, Game::K_ESCAPE))
return;
// Close console // Close console
Game::Key_RemoveCatcher(0, ~Game::KEYCATCH_CONSOLE); Game::Key_RemoveCatcher(0, ~Game::KEYCATCH_CONSOLE);
} }