Page 1 of 1

Making Page Up / Down work 'correctly' on a Mac

Posted: Thu 25 Mar, 2010 3:09 am
by PISD Support
Open Terminal (Applications -> Utilities -> Terminal) and type the following commands:

Code: Select all

cd ~/Library/
ls
if you don’t see a KeyBindings folder, type

Code: Select all

mkdir KeyBindings
Once this directory exists use cd to move into it.

Code: Select all

cd KeyBindingsMake 
Finally

Code: Select all

nano DefaultKeyBinding.dict
This opens the nano text editor. Copy these lines into the file.

Code: Select all

{
    /* Fix Home (insert mode and 'normal') */
    "\\UF729"  = "moveToBeginningOfLine:";
    "$\\UF729" = "moveToBeginningOfLineAndModifySelection:";

    /* Fix 'End (insert mode and normal) */
    "\\UF72B"  = "moveToEndOfLine:";
    "$\\UF72B" = "moveToEndOfLineAndModifySelection:";

    /* Fix Page Up / Down */
    "\\UF72C"  = "pageUp:";
    "\\UF72D"  = "pageDown:";
}