Skip to content

Instantly share code, notes, and snippets.

@eugrus
Last active August 10, 2023 19:39
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save eugrus/52dc90e6cb5da8de278f1afbc93969fa to your computer and use it in GitHub Desktop.
Save eugrus/52dc90e6cb5da8de278f1afbc93969fa to your computer and use it in GitHub Desktop.
Workaround for the Windows bug rewriting the user's set up keyboard layout switching shortcuts. This hack rewrites the defaults. This one is set up as following: Ctrl+1 - German; Ctrl+2 - Russian; Ctrl+3 - US-English; Ctrl+4 - Canadian Int for French
Windows Registry Editor Version 5.00
[HKEY_USERS\.DEFAULT\Control Panel\Input Method\Hot Keys]
[HKEY_USERS\.DEFAULT\Control Panel\Input Method\Hot Keys\00000100]
"Virtual Key"=hex:33,00,00,00
"Key Modifiers"=hex:02,c0,00,00
"Target IME"=hex:09,04,09,04
[HKEY_USERS\.DEFAULT\Control Panel\Input Method\Hot Keys\00000101]
"Virtual Key"=hex:31,00,00,00
"Key Modifiers"=hex:02,c0,00,00
"Target IME"=hex:07,04,07,04
[HKEY_USERS\.DEFAULT\Control Panel\Input Method\Hot Keys\00000102]
"Virtual Key"=hex:32,00,00,00
"Key Modifiers"=hex:02,c0,00,00
"Target IME"=hex:19,04,19,04
[HKEY_USERS\.DEFAULT\Control Panel\Input Method\Hot Keys\00000103]
"Virtual Key"=hex:34,00,00,00
"Key Modifiers"=hex:02,c0,00,00
"Target IME"=hex:0c,0c,20,f0
[HKEY_CURRENT_USER\Control Panel\Input Method\Hot Keys]
[HKEY_CURRENT_USER\Control Panel\Input Method\Hot Keys\00000100]
"Virtual Key"=hex:33,00,00,00
"Key Modifiers"=hex:02,c0,00,00
"Target IME"=hex:09,04,09,04
[HKEY_CURRENT_USER\Control Panel\Input Method\Hot Keys\00000101]
"Virtual Key"=hex:31,00,00,00
"Key Modifiers"=hex:02,c0,00,00
"Target IME"=hex:07,04,07,04
[HKEY_CURRENT_USER\Control Panel\Input Method\Hot Keys\00000102]
"Virtual Key"=hex:32,00,00,00
"Key Modifiers"=hex:02,c0,00,00
"Target IME"=hex:19,04,19,04
[HKEY_CURRENT_USER\Control Panel\Input Method\Hot Keys\00000103]
"Virtual Key"=hex:34,00,00,00
"Key Modifiers"=hex:02,c0,00,00
"Target IME"=hex:0c,0c,20,f0
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment