Using an Apple Magic keyboard
See original GitHub issueLeaving this here as documentation (since I couldn’t edit the/a Wiki): I’m using an Apple Magic Keyboard (with numpad) and these are my mappings:
And this is the registry data:
Windows Registry Editor Version 5.00
[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Keyboard Layout]
"Scancode Map"=hex:00,00,00,00,00,00,00,00,0c,00,00,00,37,e0,64,00,46,00,65,00,\
20,e0,67,00,6a,e0,68,00,2e,e0,69,00,30,e0,6a,00,45,00,45,e0,5b,e0,38,00,38,\
00,5b,e0,5c,e0,38,e0,38,e0,5c,e0,00,00,00,00
Save the above in a .reg
file (e.g. “apple_keyboard.reg” for example), double-click the file, allow it to be imported. Log off and back on (works on my Win10 machine, you may need to reboot) and you’re set!
This maps:
<kbd>F13</kbd> -> <kbd>PrtScr</kbd> <kbd>F14</kbd> -> <kbd>Scroll Lock</kbd> <kbd>F15</kbd> -> Sorry, can’t map to <kbd>break</kbd> <kbd>F16</kbd> -> <kbd>(Un)Mute</kbd> <kbd>F17</kbd> -> <kbd>Web: Back</kbd> <kbd>F18</kbd> -> <kbd>Volume Down</kbd> <kbd>F19</kbd> -> <kbd>Volume Up</kbd> <kbd>Clear</kbd> -> <kbd>NumLock</kbd> <kbd>Left Option</kbd> -> <kbd>Left Windows</kbd> <kbd>Left Command</kbd> -> <kbd>Left Alt</kbd> <kbd>Right Option</kbd> -> <kbd>Right Windows</kbd> <kbd>Right Command</kbd> -> <kbd>Right Alt</kbd>
Unfortunately the <kbd>⏏</kbd> key (between <kbd>F12</kbd> and <kbd>F13</kbd>) and the <kbd>fn</kbd> button cannot be mapped (the latter I’d love to map to <kbd>insert</kbd>.
I use the above settings with Tray Status Pro to show the numlock and caps-lock states (can also do scroll-lock but I don’t use it anyway) and only seldomly miss my HP Keyboard that I’ve used for over two decades. I use(d) <kbd>shift</kbd> + <kbd>delete</kbd> and <kbd>shift</kbd> + <kbd>insert</kbd> as <kbd>ctrl</kbd> + <kbd>c</kbd> / <kbd>ctrl</kbd> + <kbd>v</kbd> (copy/paste) alternative a lot since I can more easily find those keys blindly. Also being a programmer I miss the (<kbd>ctrl</kbd> + ) <kbd>break</kbd> key combo. Also the menu key is missing on the Apple Magic Keyboard so I didn’t map it (maybe possible to use <kbd>F17</kbd> for; but haven’t figured out the codes (yet)). But that’s about it. The rest works as expected.
I hope this information is useful to anyone. @randyrants : Thanks for the great tool 👍 Please consider opening the Wiki? 😘
Issue Analytics
- State:
- Created 6 years ago
- Comments:7 (2 by maintainers)
If anyone’s using the Magic Keyboard without the numpad, this combo works quite nicely:
NOTE: I personally don’t use the right
command
oroption
keys, so I haven’t mapped them here.@RobThree, thank you so much 🙏 I’d really like to be able to map the eject key to delete, it can be done in https://github.com/samartzidis/WinAppleKey, perhaps it could be done in SharpKeys?