From 02a77e2e0bcca300a3d7bbeb09fb32b01ebba3d2 Mon Sep 17 00:00:00 2001 From: m <64374267+mjkzy@users.noreply.github.com> Date: Mon, 26 Apr 2021 09:30:18 -0500 Subject: [PATCH 1/2] Update game_console.cpp --- src/component/game_console.cpp | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/component/game_console.cpp b/src/component/game_console.cpp index efff02d0..e213a479 100644 --- a/src/component/game_console.cpp +++ b/src/component/game_console.cpp @@ -428,6 +428,11 @@ namespace game_console bool console_char_event(const int localClientNum, const int key) { + if (key == game::keyNum_t::K_GRAVE || key == game::keyNum_t::K_TILDE) + { + return false; + } + if (key > 255) { return true; @@ -546,11 +551,6 @@ namespace game_console bool console_key_event(const int localClientNum, const int key, const int down) { - if (key == game::keyNum_t::K_F10) - { - game::Cmd_ExecuteSingleCommand(localClientNum, 0, "lui_open menu_systemlink_join\n"); - } - if (key == game::keyNum_t::K_GRAVE || key == game::keyNum_t::K_TILDE) { if (!down) From 0f53691685da1ff0c7c64adef7f47f475e8029f4 Mon Sep 17 00:00:00 2001 From: m <64374267+mjkzy@users.noreply.github.com> Date: Mon, 26 Apr 2021 10:02:18 -0500 Subject: [PATCH 2/2] fixed? --- src/component/game_console.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/component/game_console.cpp b/src/component/game_console.cpp index e213a479..6f79d244 100644 --- a/src/component/game_console.cpp +++ b/src/component/game_console.cpp @@ -428,7 +428,7 @@ namespace game_console bool console_char_event(const int localClientNum, const int key) { - if (key == game::keyNum_t::K_GRAVE || key == game::keyNum_t::K_TILDE) + if (key == '`' || key == '~') { return false; }