Fix duplicate clipboard paste in VT2

This commit is contained in:
Dreomite 2021-07-19 15:43:48 +03:00
parent 8955e2815f
commit 5c8aa7cba5

View file

@ -182,7 +182,7 @@ vmf:hook("ChatGui", "_update_input", function(func, self, input_service, menu_in
end end
-- ctrl + v -- ctrl + v
if Keyboard.pressed(Keyboard.button_index("v")) and Keyboard.button(Keyboard.button_index("left ctrl")) == 1 then if VT1 and Keyboard.pressed(Keyboard.button_index("v")) and Keyboard.button(Keyboard.button_index("left ctrl")) == 1 then
local new_chat_message = self.chat_message local new_chat_message = self.chat_message
-- remove carriage returns -- remove carriage returns