Categories
Science and Technology

Home Keys on a Mac

God, the default behavior drives me nuts! In case you’re not “in the know,” pressing the “Home” key on your keyboard if you’re using a Mac will scroll whatever window you’re in to the top — on a Windows computer, if just sends the cursor to whatever line you’re currently typing on.

Well, “to each technology its own and all,” but I’m used to Windows’ behavior, so I’m going to have to change that if I’m going to type on a Mac.

So, I set out to look for a way to change it, and found this site on the web — pretty straight forward, if you ask me!

Just add the following lines to your “~/Library/KeyBindings/DefaultKeyBinding.dict.” file (if it doesn’t exist, create it):

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

And that’s it! Just restart any application that you want to reflect this behavior and you’re good to go!