Normally if you hit the home or the end key it takes you to the beginning or the end of a line of text, text box, whatever. In OS X, the home and end keys take you to the top and bottom of a page.
The good news is that the same beginning/end functionality can be replicated by using the up and down arrows in OS X. The bad news is there is just no way I am going to be able to train myself to stop using home and end, especially when I am so used to using these keys for software development or word processing in Windows, so I had to come up with a solution.
It turns out that the solution is a two-step process for Mac users who are running Firefox, and a one-step process otherwise.
Step 1: Changing the Default Home and End Key Behaviors in OSX
Reference: evansweb.info | mac os x home / end keys
- Open a Terminal (Applications > Utilities > Terminal)
- Change the directory to Library (type: cd Library)
- Create the KeyBindings directory if it does not exist (type: mkdir KeyBindings)
- Change the directory to KeyBindings (type: cd KeyBindings)
- Run Pico (type: pico)
- Paste the following text--including the curly brackets--into Pico (Command+V to paste)
- Save the file (Control+O)
- Name the file: DefaultKeyBinding.dict
- Exit Pico (Control+X)
- Log out of OS X, and log back in
{
/* Remap Home / End to be correct :-) */
"\UF729" = "moveToBeginningOfLine:";
"\UF72B" = "moveToEndOfLine:";
"$\UF729" = "moveToBeginningOfLineAndModifySelection:";
"$\UF72B" = "moveToEndOfLineAndModifySelection:";
}
Reference: Mac OS X Hints | Change Home/End behavior in Firefox and Thunderbird
- Jar extract the contents of /Applications » Firefox.app » [Control-click and show package contents] » Contents » MacOS » chrome » toolkit.jar into a temporary directory. Do this by moving toolkit.jar to your Desktop, opening a terminal window (Applications » Utilities » Terminal) and changing directories to your desktop (cd /Users/[You]/Desktop). Then extract the archive with this command: jar xf toolkit.jar.
- Replace the file content » global » platformHTMLBindings.xml with this one.
- Recreate the archive (jar cvf toolkit.jar content/) and replace the original toolkit.jar in the Firefox "chrome" directory above with the new one on your Desktop.
- Quit and restart Firefox
No comments:
Post a Comment