On OS X the Home key takes you to the start of a document and the End key takes you to the end. On MS Windows it takes you to the beginning of the line and the end of the line. I don't care where the OS X behaviour comes from, in my opinion, the latter is how it should be, period. You cannot discuss this with me. (Please do not try to start a discussion in a comment. If you like the OS X behaviour better, good on ya!)
So how can we change this? (for quite a few applications - not all applications react to the following change)
- Using the Finder or Terminal, go to your home directory. This is in /Users/
- Locate your /Library folder.
- Look for a folder called /KeyBindings. If it's not there, create it.
- Inside this folder should be a file called DefaultKeyBindings.dict. If it's not there, create one with a text editor, I used TextEdit which worked. I don't know how other text editors perform.
- Add the following lines to this files content (If there is text like this one already present, omit the "{" and "}" characters):
{
/* home */
"\UF729" = "moveToBeginningOfLine:";
"$\UF729" = "moveToBeginningOfLineAndModifySelection:";
/* end */
"\UF72B" = "moveToEndOfLine:";
"$\UF72B" = "moveToEndOfLineAndModifySelection:";
}
- Save the file. Changes are in effect immediately for most NEWLY launched applications.
Enjoy!
NB: This fix was taken from the following websites:
-http://www.starryhope.com/tech/2006/mac-os-x-home-and-end-keys/
- http://blog.macromates.com/2005/key-bindings-for-switchers/
2 comments:
More handy Keyboard shortcuts
BTW, Begin-of-line is CTRL-LeftArrow, EOL=CTRL-RightArrow...
@ Kees: Thanks for that link, always handy. On my mac it's Command + arrows. A bit clumsy. Control+arrows is used to change virtual desktop...
Post a Comment