![]() |
![]() |
|
|
|
|
|
Like my work? Check out HexaLex, my game for iPhone & iPod Touch. It's a crossword game like Scrabble, but played with hexagonal tiles. http://www.hexalex.com For some reason the Mac gods decided that Home and End scroll your window to the beginning and end of file respectively. This is just wrong. They should move the cursor to the beginning or end of the line it's on, just like they do in every other modern UI. Thankfully, there's a way to fix this for all Cocoa apps, which for me is everything I use!
First you need to make a subdirectory called
{
"\UF729" = "moveToBeginningOfLine:"; /* Home */
"\UF72B" = "moveToEndOfLine:"; /* End */
"$\UF729" = "moveToBeginningOfLineAndModifySelection:"; /* Shift-Home */
"$\UF72B" = "moveToEndOfLineAndModifySelection:"; /* Shift-End */
}
Restart any Cocoa apps (Safari, Mail, or TextEdit) to see the new keybindings take effect!
For more info on this method of binding keys see this OS X
hint and this
Apple document. The commands like
|
|
![]() |
![]() |




Hello,
Thank you for posting this help article on fixing the
home and end keys on the mac.
Much appreciated.
I was wondering how to determine the actual numeric keycodes
for these keys?
You see, I use a handy unix-based editor called “nled”
and would like to have the end/home keys work the same
way when I edit a file from the command line.
The end key seems unresponsive when editing a file within
a terminal window.
I tried capturing the keycode using getch( ); in ,
but nothing happens.
Is the “end” key only available for cocoa-based apps?
Thanks for any help/feedback.
…Danny