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

This forum is intended to enable people developing products using the PISD Libraries to recieve easy technical support and also to ask general questions about the libraries to other people using them.
Post Reply
User avatar
PISD Support
Moderator
Posts: 26
Joined: Thu 21 May, 2009 4:19 pm

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

Post 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:";
}
Post Reply