From 9b00e6e66e4ac999f72a45b7342d663f581a8b35 Mon Sep 17 00:00:00 2001 From: Azumgi <4zumgi@gmail.com> Date: Fri, 4 Jan 2019 14:36:06 +0300 Subject: [PATCH] [Chat Actions] Add numpad enter support (commands) --- vmf/scripts/mods/vmf/modules/ui/chat/chat_actions.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/vmf/scripts/mods/vmf/modules/ui/chat/chat_actions.lua b/vmf/scripts/mods/vmf/modules/ui/chat/chat_actions.lua index f0f7d36..2f3d6e9 100644 --- a/vmf/scripts/mods/vmf/modules/ui/chat/chat_actions.lua +++ b/vmf/scripts/mods/vmf/modules/ui/chat/chat_actions.lua @@ -64,7 +64,7 @@ vmf:hook("ChatGui", "_update_input", function(func, self, input_service, menu_in local command_executed = false -- if ENTER was pressed - if Keyboard.pressed(Keyboard.button_index("enter")) then + if Keyboard.pressed(Keyboard.button_index("enter")) or Keyboard.pressed(Keyboard.button_index("numpad enter")) then -- chat history if _chat_history_enabled