ValveSoftware / csgo-osx-linux

Counter-Strike: Global Offensive
http://counter-strike.net
778 stars 69 forks source link

Opening the console types the bind key in the input #3365

Open Keplyx opened 1 year ago

Keplyx commented 1 year ago

Your system information

Please describe your issue in as much detail as possible:

When opening the console (in-game or in the main menu) the bind key used to open it is sent directly to the console's input.

Here is a video example on a French keyboard layout. I first use "w" to open the console, the console is opened with "w" already typed. I then use "²" to open the console, "²" is already typed (but rendered as an invalid character). The bind key is typed in the console's input even when there is already some input there.

https://github.com/ValveSoftware/csgo-osx-linux/assets/23726131/e4522901-24ae-4345-8e5a-0305644ad21a

I did not have such issue on CS:GO. I only tested on Linux but I can't say if the issue is limited to that platform as I don't have access to any other system.

Steps for reproducing this issue:

  1. Set a key to open the console
  2. Press that key
  3. See how the console has that key already typed in the console's input
Keplyx commented 1 year ago

I tried it again today and it seems partially fixed. It does not happen in-game anymore, which is where it was the most annoying anyway. I could now only reproduce it on the main menu, but only after having opened the console at least one. The first time opening the console after starting the game worked without issue.

Updated steps for reproducing this issue:

  1. Start the game and open the console: no character will be typed in the console's input
  2. Close and open the console again: the bind key will be typed in the console's input
  3. Start a game, open the console: no character will be typed in the console's input
  4. Exit to the main menu and open the console: the bind key will be typed in the console's input