question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Using an Apple Magic keyboard

See original GitHub issue

Leaving 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:

Screenshot

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:closed
  • Created 6 years ago
  • Comments:7 (2 by maintainers)

github_iconTop GitHub Comments

2reactions
nwittwercommented, Jan 23, 2020

If anyone’s using the Magic Keyboard without the numpad, this combo works quite nicely:

image

NOTE: I personally don’t use the right command or option keys, so I haven’t mapped them here.

1reaction
psyanitecommented, Jan 28, 2019

@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?

Read more comments on GitHub >

github_iconTop Results From Across the Web

Set up and use Magic Keyboard for iPad
Connect your Magic Keyboard to your iPad · Place your Magic Keyboard on a flat surface with the hinge away from you and...
Read more >
Set up your Magic Keyboard, Magic Mouse or ...
Turn on your device. · Choose Apple menu > System Settings (or System Preferences), then click Bluetooth. · When your device appears in ......
Read more >
Tips and tricks for mastering the iPad Pro Magic Keyboard
Apple did a great job with the trackpad on the Magic Keyboard. It is "clickable" everywhere on its surface. Just press and you...
Read more >
Apple Magic Keyboard: Floating iPad Pro? - YouTube
iPad Pro and Magic Keyboard are the best pair yet.. if you're 1 type of person. MKBHD Merch: http://shop.MKBHD.com Video Gear I use...
Read more >
Magic Keyboard for the iPad Pro review - The Verge
Apple Magic Keyboard · The keyboard's feel is great, but it lacks a function row · Trackpad support in iPadOS is excellent, but...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found