I'm using the following technique to remap the home and end keys to make them work like windows:


{ /* Remap Home / End to be correct :-) */ 
"\UF729"  = "moveToBeginningOfLine:";                   /* Home         */ 
"\UF72B"  = "moveToEndOfLine:";                         /* End          */ 
"$\UF729" = "moveToBeginningOfLineAndModifySelection:"; /* Shift + Home */ 
"$\UF72B" = "moveToEndOfLineAndModifySelection:";       /* Shift + End  */ 

http://lifehacker.com/225873/mac-switchers-tip--remap-the-home-and-end-keys (ie go to start and end of text row)

This doesn't appear to be supported in all apps (ie TextEdit)

Is there a different way to make this work in other mac apps? (ie is this technique obsolete on OS X Lion?)

1 Answer 1


It should work in TextEdit and 10.7 / 10.8. Did you reopen applications after saving the plist? It looks valid, but you can check for syntax errors with plutil ~/Library/KeyBindings/DefaultKeyBinding.dict.

DefaultKeyBinding.dict does not work in other applications like Xcode, Firefox, or Photoshop though. Another option would be to use KeyRemap4MacBook:

You can customize the setting group by copying it from the source to private.xml.

  • Thanks for your answer Lauri - could you clarify re the plist? Are you referring to the data structure in the .dict file?
    – hawkeye
    Feb 24, 2013 at 10:51
  • Yeah, .dict is an alternative extension for .plist. The DefaultKeyBinding.dict in your question is an old-style property list.
    – Lri
    Feb 24, 2013 at 12:45
  • Have you got an example of what a new-style mapping would look like?
    – hawkeye
    Feb 24, 2013 at 21:15
  • It's just XML, like this. Or I guess you could edit DefaultKeyBinding.dict with Xcode and save it as binary.
    – Lri
    Feb 25, 2013 at 5:54

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .