How can I disable the Command-Up/Down arrow shortcuts?

I'm tired of jumping to the beginning or end of a document due to years and years of conditioning on other OS's!

link|improve this question
+1 indeed. I also wish there was a universal way of controlling Pg Up/Down, Home and End function in OSX - it's honestly the biggest thing that keeps me away from that otherwise decent OS. – Doc Jul 6 '11 at 23:08
It's driving me nuts. Happy with everything except the lack of a tiling window manager, and the terrible pgup/down/home/end situation. – user89188 Jul 6 '11 at 23:10
Yeah. Something else I find sorta funny is on a VM on OSX, say for Windows or Linux, those keys function as you'd expect. Not surprising, but it still kind of adds insult to injury for me. – Doc Jul 6 '11 at 23:11
I know the same keys do folder navigation in Finder, so it seems that it's absolutely App overridable -- hence hoping there's a nice shortcut customization program that will help... – user89188 Jul 6 '11 at 23:12
By Occams Razor, do I ever hope so. – Doc Jul 6 '11 at 23:20
show 1 more comment
feedback

1 Answer

up vote 5 down vote accepted

You could save something like this as ~/Library/KeyBindings/DefaultKeyBinding.dict:

{
    "@\UF700" = noop:; // command-up
    "@\UF701" = noop:; // command-down
    "$@\UF700" = noop:; // shift-command-up
    "$@\UF701" = noop:; // shift-command-down

    // "\UF729"  = moveToBeginningOfLine:; // home
    // "$\UF729" = moveToBeginningOfLineAndModifySelection:; // shift-home
    // "\UF72B"  = moveToEndOfLine:; // end
    // "$\UF72B" = moveToEndOfLineAndModifySelection:; // shift-end
    // "\UF72C"  = pageUp:; // OS X default is scrollPageUp: which doesn't move the caret
    // "\UF72D"  = pageDown:;
    // "$\UF72C"  = pageUpAndModifySelection:;
    // "$\UF72D"  = pageDownAndModifySelection:;
}

More information:

link|improve this answer
I can't check yet, but awesome. – user89188 Jul 7 '11 at 12:42
feedback

Your Answer

 
or
required, but never shown

Not the answer you're looking for? Browse other questions tagged or ask your own question.