Apple Keyboard bindings

Written by dermdaly on October 6th, 2010

Got an Apple Keyboard™? Disgruntled with the way the PageUp/PageDown/Home/End buttons only move the screen and not the cursor? Well, gruntle no more with this handy tip! (Windows users can feel smug in the knowledge that their keyboards have always had this functionality*.)

In ~/Library/, create a directory called KeyBindings. In this directory, create a file called DefaultKeyBinding.dict, and enter the following bit of crunchy magic goodness:

"UF729" = ("moveToBeginningOfDocument:","setMark:"); 
"UF72B" = ("moveToEndOfDocument:","setMark:");
"UF72C" = ("pageUp:","setMark:"); 
"UF72D" = ("pageDown:","setMark:");

Restart any Cocoa application that that uses Cocoa Text System, and the new keybinding will take effect in that application, as if by magic!

CAVEAT: XCode overrides the default text keyboard bindings, so you’ll need to update the keyboard bindings manually.

Goto Preferences / KeyBindings / Text Key Bindings, and update the following actions with the relevant keystrokes:

Mode to Beginning of Document: ↖
Mode to End of Document: ↘
Page Down: ↡
Page Up: ↟

Now, you have a wonderful keyboard with really actually usable and useful navigation keys!

* Shame about the rest of the Windows user experience, haha.

Comment (1)

[…] This post was mentioned on Twitter by Dermot Daly, liam dunne. liam dunne said: @dermdaly @ashleymills Apple KeyBoard mappings: […]

Comment on this post

Let us build your app

We offer native app development for iPhone, iPad, Android and Windows Phone; with full service from idea generation through to getting your app on the App Store. If you’d like to discuss your app development needs, get in touch.

By continuing to use the site, you agree to the use of cookies. more information

The cookie settings on this website are set to "allow cookies" to give you the best browsing experience possible. If you continue to use this website without changing your cookie settings or you click "Accept" below then you are consenting to this.