Fix the Home and End Keys for Mac OS X and Eclipse (Flex Builder)

Marc-Antoine Ross November 15th, 2007 Add comment

You’ll edit a system file, be careful.

If the file or folder doesn’t already exist, you need to create it. Here’s the easy way to do it in Terminal (easier, because Finder doesn’t let you see hidden files easily).

Open Terminal (Applications -> Utilities -> Terminal) and type the following commands:

cd ~/Library

If the KeyBindings folder doesn’t exist in that folder, create it:

mkdir KeyBindings

Make or edit the DefaultKeyBinding.dict file:

vi KeyBindings/DefaultKeyBinding.dict

Paste the following lines:

{
/* home */
"\UF729" = "moveToBeginningOfLine:";
"$\UF729" = "moveToBeginningOfLineAndModifySelection:";
/* end */
"\UF72B" = "moveToEndOfLine:";
"$\UF72B" = "moveToEndOfLineAndModifySelection:";
/* page up/down */
"\UF72C" = "pageUp:";
"\UF72D" = "pageDown:";
}

Save the file. Now when you re-launch your applications, they should use the new Bindings.

Eclipse doesn’t follow anyone’s default key layout, it is standard based on the version you download… so basically to get this to work do this:

Eclipse -> Preferences -> General -> Keys

You will be able to remove the Binding for Text Start, Text End and respectively replace them for Line Start, Line End. I will let you understand that part by yourself, as you will find interesting shortcuts at the same time. Do the same with for the Shift-Home and Shift-End keys.

You should now have the home and end keys going to the beginning and end of the line.

Firefox still seems to have an issue…

RIA Data Loading Benchmark

Marc-Antoine Ross August 21st, 2007 Add comment

YSlow Is Out!

Marc-Antoine Ross August 10th, 2007 Add comment

Pownce Invites Left

Marc-Antoine Ross July 30th, 2007 Add comment

The PHP5 Certificate

Marc-Antoine Ross July 27th, 2007 Add comment

Montreal 2.0 San Francisco

Marc-Antoine Ross April 14th, 2007 Add comment

2 for 1 on PHP5 Zend Certification

Marc-Antoine Ross April 11th, 2007 Add comment

XHTML: Open a link in a new window - V2

Marc-Antoine Ross February 3rd, 2007 Add comment

Import PDF files in FPDF

Mario Laflamme November 10th, 2006 Add comment

Cool site: StumbleUpon

Marc-Antoine Ross November 1st, 2006 Add comment

Previous Posts Next Posts