Take the 2-minute tour ×
Ask Different is a question and answer site for power users of Apple hardware and software. It's 100% free, no registration required.

Is there any way to enable Windows-style AltGr symbol shortcuts on Mac OS? I.e., AltGr+V should be mapped to "@", AltGr+F to "[" etc. AltGr being, in this case, the right Option/Alt key.

I am using a Croatian keyboard layout and the current way for entering those symbols is horrible to say the least. I've tried fixing this using KeyRemap4MacBook, but even though the changes are applied, key mappings remain the same.

share|improve this question

2 Answers 2

You might have better luck building a new keyboard layout with Ukelele.

share|improve this answer

I managed to accomplish this using KeyRemap4MacBook.

Here is the part from personal.xml, if anybody needs it:

<item>
          <name>Windows-style AltGr mappings</name>

          <identifier>remap.altgr</identifier>

          <autogen>--KeyToKey-- KeyCode::V, ModifierFlag::OPTION_R, KeyCode::KEY_2, ModifierFlag::SHIFT_L | ModifierFlag::OPTION_L</autogen>
          <autogen>--KeyToKey-- KeyCode::F, ModifierFlag::OPTION_R, KeyCode::BRACKET_LEFT, ModifierFlag::OPTION_L</autogen>
          <autogen>--KeyToKey-- KeyCode::G, ModifierFlag::OPTION_R, KeyCode::BRACKET_RIGHT, ModifierFlag::OPTION_L</autogen>
          <autogen>--KeyToKey-- KeyCode::B, ModifierFlag::OPTION_R, KeyCode::BRACKET_LEFT, ModifierFlag::SHIFT_L | ModifierFlag::OPTION_L</autogen>
          <autogen>--KeyToKey-- KeyCode::N, ModifierFlag::OPTION_R, KeyCode::BRACKET_RIGHT, ModifierFlag::SHIFT_L | ModifierFlag::OPTION_L</autogen>
          <autogen>--KeyToKey-- KeyCode::W, ModifierFlag::OPTION_R, KeyCode::BACKSLASH, ModifierFlag::SHIFT_L | ModifierFlag::OPTION_L</autogen>
          <autogen>--KeyToKey-- KeyCode::Q, ModifierFlag::OPTION_R, KeyCode::BACKSLASH, ModifierFlag::OPTION_L</autogen>
        </item>
share|improve this answer

Your Answer

 
discard

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.