Skip to content
Snippets Groups Projects
Commit 49592167 authored by Hanicef's avatar Hanicef
Browse files

Prevent console opening if text input is enabled

parent 2644b299
Branches
Tags
1 merge request!2514Add TextInput hook
......@@ -954,6 +954,9 @@ boolean CON_Responder(event_t *ev)
if ((key == gamecontrol[GC_CONSOLE][0] || key == gamecontrol[GC_CONSOLE][1]) && !shiftdown)
{
if (con_destlines == 0 && I_GetTextInputMode())
return false; // some other component is holding keyboard input, don't hijack it!
I_SetTextInputMode(con_destlines == 0); // inverse, since this is changed next tic.
consoletoggle = true;
return true;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment