问题
I made a custom keyboard layout with MSKLC.
I thought I followed the instructions carefully and chose appropriate values for the LOCALENAME
and LOCALID
parameters.
However, in the switch-keyboard popup that is displayed by pressing Win+Space or on the TaskBar, the country associated with my custom layout is not displayed.
How to I author my layout so that Windows knows about the country it should be associated with?
回答1:
From some experiments I've done with a custom keyboard of mine, you have to change the registry.
HKEY_LOCAL_MACHINE\SYSTEM\ControlSet001\Control\Keyboard Layouts\0000040c
change
"Layout File"="KBDFR.dll"
to
"Layout File"="YourDll.dll"
and then set the
"Layout Display Name"="@%SystemRoot%\system32\YourDll.dll,-1000"
Now if you reboot you should see both the keyboard type and the correct first row. As an added bonus, the Remote Desktop won't default to english keyboard, and it will simply use the "basic" French keyboard.
来源:https://stackoverflow.com/questions/59151426/msklc-how-to-associate-a-country-to-a-custom-keyboard-layout