Skip to content

MagicKeys 0.1.0

Pre-release
Pre-release

Choose a tag to compare

@rstrlnkv rstrlnkv released this 21 Aug 06:38
· 32 commits to main since this release

The first release. It's an early build on the Dev channel — not everything has been tried on a real keyboard yet.

What it does

MagicKeys makes an Apple Magic Keyboard feel at home on Windows 11, without installing any drivers.

Mac shortcuts. ⌘C copies, ⌘← jumps to the start of the line, ⌥← skips a word, ⌘Q closes the window. There are sixty of them in three groups; each group has its own switch, and you can turn off any single shortcut. ⌘ with a key that isn't on the list just does what Control would.

The top row. F1–F12 give you volume, brightness and playback, the way they do on a Mac. For the real F-keys you use an Fn substitute: the Magic Keyboard never sends its own Fn key to Windows at all — the keyboard handles it internally. Fn+arrows give you Home, End, Page Up and Page Down.

Modifiers. Caps Lock as Control, ⌘ where Ctrl usually is, ⌥ and ⌘ swapped — pick a ready-made scheme or set each key yourself.

Apple layouts. Thirty-three languages. Only the keys that would type something different from what's printed on the Apple keycap get replaced, and dead keys work. Nothing gets installed into Windows.

Numeric keypad. Windows treats the ⌧ key as Num Lock and quietly switches the keypad off; MagicKeys gives the key its meaning back. The "=" key sends a code nothing understands, so MagicKeys types the "=" itself.

Brightness on external monitors over DDC/CI. Windows can't do this at all — its brightness keys only work on a laptop's built-in screen.

Battery level. Windows doesn't show it, so MagicKeys asks the keyboard directly with a HID report.

Plays nicely with the Boot Camp driver. If that driver has taken over the top row, MagicKeys steps aside and tells you so, rather than pretending your settings are doing something.

Installing

Download MagicKeys-0.1.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: EAAB25DD8E533A831988BDDFD92D5EE753AB55F56DAA1322031DD684779F0008

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. That's a limit of the system, not an oversight. If it bothers you, turn on "Only with Magic Keyboard" and MagicKeys stays quiet whenever no Apple keyboard is connected.

The ⏏ key on a Magic Keyboard never reaches Windows — the keyboard handles it itself, and no driver changes that. There is a setting for it, aimed at the aluminium USB keyboards, but I had nothing to test that path on.

This is an early build. Key handling is covered by a test suite of 703 checks, but those test the app's decisions, not real hardware. If a key behaves oddly, turn on developer mode and open the Diagnostics page — it shows exactly what reached Windows.

How it was tested

Twenty-four rounds of picky review over the whole codebase. More than three hundred bugs fixed, and nearly all the serious ones were the same kind: a key ended up with two owners, or none. The press went one way and the release another, and the key stayed stuck down in Windows with nothing able to let it go.

The rule I worked by: a claim without a command behind it is just a claim. Every fix has a test, and every test was first shown to fail without the fix.

License

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