Disable input when typing into a text field. (#2140)

Closes #2139
This commit is contained in:
gir489
2023-09-17 16:23:26 -04:00
committed by GitHub
parent a4209c1b23
commit 347f33fb2d
14 changed files with 41 additions and 19 deletions

View File

@ -88,7 +88,7 @@ namespace big
if (g.cmd_executor.enabled)
return;
if (g_gui->is_open())
if (g_gui->is_open() || HUD::IS_PAUSE_MENU_ACTIVE() || SCRIPT::GET_NUMBER_OF_THREADS_RUNNING_THE_SCRIPT_WITH_THIS_HASH(RAGE_JOAAT("cellphone_flashhand")) > 0 || HUD::IS_MP_TEXT_CHAT_TYPING())
return;
if (state == eKeyState::RELEASE || state == eKeyState::DOWN)