Got My Keys Sorted for Windows

Published 25 January 08 03:55 AM | andersnoras 

Mac Keys

One of the biggest annoyances with using a Mac for Visual Studio development is that the Windows keyboard layout is different from the Mac layout. On a Norwegian Mac keyboard, you’ll find much used characters such as { and } by pressing option + shift + 8 or 9 respectively. On Windows you’ll need to hit altgr and 7 or 0. It is the same story with other characters such as < and >, @ or \ to name a few. Since the Mac keyboard hasn’t got an altgr key, you’ll need to press both ctrl and option to simulate this key with Windows running on a Mac. This isn’t a big deal, but it is a little annoying. The constant mental context switches you need to do to relocate your keys is a bigger issue. To mitigate these annoyances, I decided to create a custom keyboard layout for Windows which puts every key in the right place.

Keyboard

I had to make some compromises while remapping the keys with regards to modifier keys. On Windows you cannot remap keys with the alt modifier, so I had to swap it for ctrl. This implies that to get to the curly braces on Windows you’ll need to press ctrl + shift + 8 or 9 rather than the strokes described above. Another minor issue is that most Windows applications use the ctrl modifier for keyboard shortcuts, so hitting ctrl + s will probably bring up the Save dialog rather than printing ß. I reckon I can work my way around this by remapping Visual Studio’s keyboard shortcuts, but until this becomes a real problem I won’t bother.

Keyboard Ctrl

If you’re interested in trying my Mac-friendly keyboard layout, you’ll find the installer here: Mac Keyboard Layout for Windows (Norsk, Bokmål)

Filed under: ,

Comment Notification

If you would like to receive an email when updates are made to this post, please register here

Subscribe to this post's comments using RSS

Comments

# Roland Kaufmann said on January 26, 2008 3:07 PM:

I believe it is possible to map Alt+Shift on Windows by activating it in the modifiers table.

However, some applications may use it as an accelerator. But in any case, it seems less cumbersome than using Ctrl!

# Roland Kaufmann said on March 11, 2008 1:33 PM:

AltGr is usually emulated with numeric Enter in Parallels:

<http://forum.parallels.com/showthread.php?p=27651&highlight=altgr>

This is of course a different action than on the Mac itself (but you curiously started out by not wanting to have a different action, but ended up remapping Ctrl!).

You can switch modifiers on the Mac to make them the same as their Windows counterparts:

<http://www.tuaw.com/2007/09/13/mac-101-change-keyboard-modifier-keys-with-a-windows-keyboard/>

A third approach is to make the Option key AltGr in Windows, and then create a layout which maps AltGr+Shift. You then loose the special Alt key in Windows as a downside, though.

Leave a Comment

(required) 
(optional)
(required) 
Enter the code you see below