From 4a0d5474cdeb8c02c12598c76ea9aae614044fd7 Mon Sep 17 00:00:00 2001 From: Azumgi <4zumgi@gmail.com> Date: Thu, 24 Jan 2019 22:11:18 +0300 Subject: [PATCH] [Custom Views] Forbid closing view with chat opened --- vmf/scripts/mods/vmf/modules/gui/custom_views.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/vmf/scripts/mods/vmf/modules/gui/custom_views.lua b/vmf/scripts/mods/vmf/modules/gui/custom_views.lua index 8542b46..0ad4b3a 100644 --- a/vmf/scripts/mods/vmf/modules/gui/custom_views.lua +++ b/vmf/scripts/mods/vmf/modules/gui/custom_views.lua @@ -350,7 +350,7 @@ function vmf.keybind_toggle_view(mod, view_name, keybind_transition_data, can_be if is_view_active_for_current_level(view_name) then if _ingame_ui.current_view == view_name then - if keybind_transition_data.close_view_transition_name then + if keybind_transition_data.close_view_transition_name and not Managers.chat:chat_is_focused() then if view_data.view_transitions[keybind_transition_data.close_view_transition_name] then mod:handle_transition(keybind_transition_data.close_view_transition_name, true, keybind_transition_data.transition_fade,