Submit Hint Search The Forums LinksStatsPollsHeadlinesRSS
14,000 hints and counting!


Click here to return to the 'Move the cursor during Page Up, Page Down scrolling' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
Move the cursor during Page Up, Page Down scrolling
Authored by: bhas on Dec 08, '09 09:36:36AM

Interesting.
It also doesn't work in TextWrangler 3.

You can achieve the same effect by making a DefaultkeyBinding.dict in ~/Library/KeyBindings
and putting the following in that file

{

/* page up/down with moving insertion point, caret */
"\UF72C" = "pageUp:";
"\UF72D" = "pageDown:";

/* Option/Alt + PgUp/PgDn */
"~\UF72C" = "scrollPageUp:";
"~\UF72D" = "scrollPageDown:";
}

which is what I have done. I can't get used to the cursor not moving when I do an unmodified PgUp and PgDn.

You can do much more than just this. See <a href=http://www.hcs.harvard.edu/~jrus/site/cocoa-text.html>this page</a> by Jacob Rus.

Berend



[ Reply to This | # ]
Move the cursor during Page Up, Page Down scrolling
Authored by: lrivers on Dec 09, '09 06:44:27AM

Old School Mac apps (TextWrangler, for instance) already do this with command-up arrow.



[ Reply to This | # ]
Move the cursor during Page Up, Page Down scrolling
Authored by: barefootguru on Jan 31, '10 03:16:20PM

TextWrangler is option-down arrow and option up-arrow to scroll a page and move the cursor.



[ Reply to This | # ]
Move the cursor during Page Up, Page Down scrolling
Authored by: interlard on Dec 10, '09 08:18:54PM

Sweet! I agree, the default Mac behavior is horrible. It's far more common for me to use the keyboard to jump around a document because I'd like to type something when I get there. Leaving the cursor behind is a very rare case.

Thanks for posting the key binding thing!



[ Reply to This | # ]