How do I prevent source engine based games from adding the English US keyboard layout?

7

2

I'm on Win10 and I use the german keyboard layout. Whenever I start a source engine based game, "DEU" pops up in the task bar to tell me I currently use the german layout and can now switch to ENG US if I want.

How can I prevent this? It's not only because I dont want to accidentily switch to the other keyboard. I also do not want to remove this every time again after starting the game by adding the language (as a whole, not the keyboard layout) ENG US in the system settings and then removing it to also remove the keyboard layout.

Tweakimp

Posted 2016-10-08T08:56:46.330

Reputation: 121

Why don't you just remove the layout? – Ramhound – 2016-10-08T09:00:18.103

When I remove the layout, it gets added again when I start a game. – Tweakimp – 2016-10-08T09:01:21.693

Have a look at this bug report on steam forums: Source based games keep adding US keyboard layout

– ge0rdi – 2016-10-15T15:16:36.600

Answers

2

ATTENTION!!! The solution renames the registry keys for english USA layout!!!

Use only if you know what you are doing!

First backup your registry!

Execute in PowerShell:

Rename-Item -Path "Registry::HKEY_LOCAL_MACHINE\SYSTEM\ControlSet001\Control\Keyboard Layouts\00000409" -NewName "00000409.bak" -ErrorAction Ignore;
Rename-ItemProperty -Path "Registry::HKEY_LOCAL_MACHINE\SYSTEM\ControlSet001\Control\Keyboard Layout\DosKeybCodes" -Name "00000409" -NewName "00000409.bak" -ErrorAction Ignore;
Rename-ItemProperty -Path "Registry::HKEY_LOCAL_MACHINE\SYSTEM\ControlSet002\Control\Keyboard Layout\DosKeybCodes" -Name "00000409" -NewName "00000409.bak" -ErrorAction Ignore;

You can switch layout using win+space. alt+shift will still use ENG USA when switching although it will not be displayed on the taskbar.

After some Windows updates may need to re-execute commands.

It can be considered only a temporary solution until you find a more correct one.

Victor S.

Posted 2016-10-08T08:56:46.330

Reputation: 169

Should running these commands instantly remove the US keyboard layout from the display? "ENG US" is still listed and can be switched to. – user598527 – 2019-02-26T11:26:58.803

You can switch using win + space. Alt + shift will still use ENG US when switching. – Victor S. – 2019-02-26T13:21:42.853

After running these commands the keyboard selection menu has disappeared entirely, the hotkey has no effect and I seem to be locked to the US layout. I\ve added and removed keyboard in "Region & language" settings, does not solve the issue. I created a system restore point, but either the creation failed or I somehow did not finish the process. – user598527 – 2019-02-27T10:28:19.437

Note that I did not restart after writing the first comment. – user598527 – 2019-02-27T10:30:19.140

I was able to restore my Nordic layout by adding another English language (UK) in Windows settings and then configuring my regional keyboard, but it seems that I can't delete the newly added language, otherwise the layouts disappear again. I wonder how these commands work for the other users. I don't really mind, I shouldn't have run commands I don't understand in the first place and I should reinstall Windows in any case. – user598527 – 2019-02-27T10:38:38.127

What is the problem in your particular case can not say. You can try to add the necessary languages with the following commands. $languageList = New-WinUserLanguageList "de-DE"; $languageList.Add("ru-RU"); Set-WinUserLanguageList $languageList -Force; "de-DE" and "ru-RU" should be replaced with the necessary. – Victor S. – 2019-02-27T11:49:47.207

Works now after all, the keyboard layout just isn't visible when only one is enabled. Thank you for answering. – user598527 – 2019-03-08T11:05:17.540