Merge pull request #1 from mjkzy/console-stuff

don't log grave/tilde + remove f10 key event
This commit is contained in:
fed 2021-04-26 17:03:02 +02:00 committed by GitHub
commit 3692ef9eb6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -428,6 +428,11 @@ namespace game_console
bool console_char_event(const int localClientNum, const int key) bool console_char_event(const int localClientNum, const int key)
{ {
if (key == '`' || key == '~')
{
return false;
}
if (key > 255) if (key > 255)
{ {
return true; return true;
@ -546,11 +551,6 @@ namespace game_console
bool console_key_event(const int localClientNum, const int key, const int down) 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 (key == game::keyNum_t::K_GRAVE || key == game::keyNum_t::K_TILDE)
{ {
if (!down) if (!down)