Facepunch / sbox-issues

177 stars 12 forks source link

Ingame Console doesn't open on QWERTZ Keyboard layout. #127

Closed Adesii closed 3 years ago

Adesii commented 3 years ago

Describe the bug Depending on the Keyboard layout it won't open the Ingame Console.

To Reproduce

  1. Choose German or other QWERTZ keyboard layout.
  2. Try to open the Console ingame. using the ` key. ( ^ on the QWERTZ layout)
  3. See it not opening. unless switching to a QWERTY layout.

Expected behavior Opening the ingame Console when pressing the same key independent of Keyboard layout.

Additional Info Im using a German Keyboard and it has "Deadkeys" (keys that are used for accents above letters. so the first press is nothing) but even if i use a custom QWERTZ layout without "Deadkeys" it still won't open.

garrynewman commented 3 years ago

Which key is normally bound to open the console, if you were to do bind x toggleconsole?

Adesii commented 3 years ago

Which key is normally bound to open the console, if you were to do bind x toggleconsole?

im not quite sure i understand the question? but to further demonstrate the issue im talking about. im not talking about the external S&Box console (not sure if it even has a default bind. the one that opens when typing toggleconsole)

tldr; seems like the character ` is hardcoded to open the console and not the location. which is bad on QWERTZ layout because of Deadkeys.

im talking about this Console. (or ingame overlay or whatever its called. does it even have a console command that is bindable?) 11,05_12,42 34_103_sbox and about the key for tilde or grave accent key . left of 1 on the keyboard.

on a QWERTZ keyboard it has a different symbol. ^ this one to be exact. (the first key on the top left) QWERTZ layout

on a QWERTY keyboard it is the symbol ` . QWERTY layout

im not sure why they seem to not work independently of eachother. or if the keycode changes because of deadkeys or whatever the reason is for it not working. it definitely slows down development time at least for me by having to switch keyboard layout to open it.

a workaround if you can call it that, is to just use the external console. which kinda ruins the point of having the ingame one.

(during writing this i found that its possible to open the console on a QWERTZ layout by SHIFT-´ (right of ß on the German layout). but closing isnt possible without disabiling the deadkey functionality. so it seems to be hardcoded to the character ` rather than location)

i hope this helps fixing it.

Trojaner commented 3 years ago

I have a German keyboard too, it opens/closes the ingame console with F1 for me (didnt do any binds).

Adesii commented 3 years ago

I have a German keyboard too, it opens/closes the ingame console with F1 for me (didnt do any binds).

OH wow... you are right. that is really odd to have 2 keys that do the same. Thanks for the Info

github-actions[bot] commented 3 years ago

Looks like this issue has received no activity recently. If you think this issue/request is still relevant, please let us know by commenting.

SebbeJohansson commented 3 months ago

F1 no longer opens console. I am using a swedish qwerty keyboard and I can not close console after opening it.

SebbeJohansson commented 3 months ago

F2 seems to have replaced it.