11/05/2013

Remap HOME and END keys for Mac (KeyRemap4MacBook)


1. Download KeyRemap4Macbook, install and rebook Mac. (https://pqrs.org/macosx/keyremap4macbook/index.html.en)

2.
 Click the above icon and click 'Preferences..'


3.
Go to the 'Misc & Uninstall' tab and click 'Open private.xml' button.



4. Then you will see the 'private.xml' file, and open this file with your favorite text editor (or you can download private.xml file [Click here], and replace it).

<?xml version="1.0"?>
<root>
  <item>
    <name>REMAP HOME AND END KEY</name>
    <identifier>private.home_and_end_key</identifier>
    <!-- change right option key (0x3d) to tab key (0x30) -->
    <autogen>
      __KeyToKey__
      KeyCode::HOME,
      KeyCode::CURSOR_LEFT,   ModifierFlag::COMMAND_L
    </autogen>
    <autogen>
      __KeyToKey__
      KeyCode::END,
      KeyCode::CURSOR_RIGHT,   ModifierFlag::COMMAND_L
    </autogen>
  </item>
</root>

Copy and paste above code in the file and save, exit.



5. Go to the 'Change Key' tab, and click the 'ReloadXML' button. Then, you will see the new item and select it.


No comments:

Post a Comment