Skip to content

MagicKeys 0.2.0

Pre-release
Pre-release

Choose a tag to compare

@rstrlnkv rstrlnkv released this 26 Aug 18:57
· 23 commits to main since this release

The second release. Still an early build on the Dev channel: some of what's new was measured from photos rather than tried on a real keyboard, and below I say exactly which parts.

What's new

A picture of your keyboard. MagicKeys now shows the keyboard it thinks you have, so you can see for yourself that it got your model right. Keys with an outline are ones it has already seen, which means they reach Windows. The key you press lights up. You can look at any other Apple keyboard from the list too, but without outlines or highlights — it hasn't seen that one.

It's a drawing, not a photo: a photo of a Magic Keyboard is someone else's work, and this is free software. The measurements come from Apple's official US, UK and Japanese product shots — the width of every key, the gaps, the margins and the corner radius of the case.

Right Control. Every full-size Apple keyboard has one, yet the code said that key didn't exist. So the "⌘ works like Ctrl" scheme moved the left Control and left the right one alone: two identical-looking keys did different things, and there was nowhere to fix it. Now right Control has its own row in the settings, its own place in the ready-made schemes, and you can pick it as your Fn substitute. Out of the box it behaves exactly as before, so nothing changes unless you touch it.

No more offering keys you don't have. The default Fn substitute is right ⌥, but the compact Japanese keyboard doesn't have one — there's an fn/globe key in that spot, and Fn+arrows just silently didn't work. Now MagicKeys checks whether the key exists on your model and tells you plainly, both on the "Right ⌥" card and in the list of substitutes.

Hints that match your keyboard. "The leftmost key" for Control and "left of the space bar" for ⌘ aren't true on every keyboard: on the Japanese one, Caps Lock sits in the bottom-left corner and Control is in the row with "A". The hints now describe where the key actually is.

Small things. The ⏏ key is now recognised on the whole 2015–2017 generation, including the Magic Keyboard with Numeric Keypad — those models weren't getting its card before. The media codes for dictation and screen lock now have names, so Diagnostics shows a word instead of "code CF".

Installing

Download MagicKeys-0.2.0-x64.msi and run it. It installs into Program Files, so Windows will ask for admin rights. The only requirement is .NET Framework 4.x, which every Windows 11 machine already has.

The package is signed with my own certificate, so Windows will say the publisher is unknown. The thumbprint is 103850469089DEECC19D0DD6CE1D4DD3307601FA — the app checks for exactly this one when it updates itself and won't install a package signed by anyone else.

SHA-256: ECA2E5BF5B40A657D89FBA5442FD3D496CB2161628D6640BAD5B5C9408303A58

Worth knowing up front

Remapping applies to every keyboard, not just the Apple one. Windows' low-level keyboard hook doesn't say which device a key press came from — a limit of the system, not an oversight. "Only with Magic Keyboard" keeps MagicKeys quiet whenever no Apple keyboard is connected.

The fn key never reaches Windows — the keyboard handles it itself. A substitute key does its job instead, and now you can only pick from keys your model really has.

MagicKeys no longer makes promises about ⏏. It can catch the key through raw input, but whether yours actually gets through is something only the "Eject" card on the Keys page knows, because it asks the hook itself. The old text said one thing and then the other, both times without measuring anything.

How it was tested

The test suite is now 799 checks, seventeen of them new and about keys a keyboard may not have. Almost every one was first shown to fail without its fix.

The measurements were checked against someone else's numbers, not just mine. The case's aspect ratio matches the dimensions Apple publishes to within a tenth of a percent, and the key counts match exactly: 78 for ANSI, 79 for ISO, 109 for the full-size keyboard.

Not yet tried on a real keyboard. Right Control and ⏏ were measured from photos and covered by tests, but no presses from an actual full-size keyboard made it into this release. The Japanese and aluminium keyboards haven't been tried on hardware at all — MagicKeys has no Japanese-specific codes; they come from Windows' general mapping, and the hints say so. That's why this is an early build.

License

GNU General Public License v3 or later. All of the source is right here.