Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I'm having trouble getting my keyboard layout to be properly recognized. At the moment everything else is fine, but my less-than key (<) is mapped to the section key (§), which makes writing HTML a pain. I've tried Ukelele and KeyRemap4MacBook, but can't seem to find the correct settings to change.

For reference, this is my layout: Finnish Multilingual, and in System Preferences the input is set to Finnish.

share|improve this question
up vote 4 down vote accepted

Did you try saving something like this as private.xml?

<?xml version="1.0"?>
<autogen>--KeyToKey-- KeyCode::SWEDISH_SECTION, KeyCode::SWEDISH_LESS_THAN</autogen>
<autogen>--KeyToKey-- KeyCode::SWEDISH_LESS_THAN, KeyCode::SWEDISH_SECTION</autogen>

The key code constants are defined in the source. The test folder has an XML file with all the predefined remappings.

share|improve this answer
Worked perfectly, thanks! – onik Oct 25 '12 at 6:06
I was going around in circles with this for a while. Couldn't find the correct keycodes. This finally solved it, thank you. – keyser Jan 29 '13 at 8:35
Works nicely, but done like this it also applies to the laptop integrated keyboard. Follow these instructions to only remap on my external keyboard: – mkataja Feb 9 '15 at 14:14

After upgrading from Lion to Mountain Lion I had the same issue using a Logitech keyboard and the Spanish ISO layout.

Take a look at your /Library/Preferences/ file using a Property List Editor. It may look something like this:

    49949-1133-0      43 

Replacing 43 with a 41 solved the problem for me:

    49949-1133-0      41 
share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.