up vote 0 down vote favorite
share [g+] share [fb]

Is there a way I can move the mouse pointer using the keyboard?

link|improve this question

52% accept rate
1  
uh, do you mean the mouse pointer? – Babu Jan 9 '10 at 18:45
yes, mouse pointer. sorry didn't say it before – lydonchandra Jan 9 '10 at 19:53
feedback

2 Answers

up vote 2 down vote accepted

Search for “mouse keys” in System Preferences. Enabling it (which can usually be done by tapping Option five times) allows the numeric keypad to function as an 8-direction “joystick” (7 = left+up, 8 = up, 9 = right+up, etc.). Use the keypad's 5 to click the mouse (press it twice, quickly to double click; hold Control while pressing to right-click).

link|improve this answer
Thanks for the tips! – lydonchandra Jan 9 '10 at 19:58
feedback

Yes. Let's assume you're in a document editor and you have a bunch of text you'd like to navigate. You can use the arrow keys ← ↑ → ↓ to move one character in either direction horizontally, or one line in either direction vertically.

To move to the beginning or end of a line, type ⌘← or ⌘→, respectively. ⌘↑ and ⌘↓ move to the beginning and end of the document. In areas where these shortcuts don't work, such as in the Terminal, use ⌃A and ⌃E instead (which can be used in most Cocoa text controls).

You can move one word left or right by using ⌥← or ⌥→, respectively. Likewise, ⌥↑ and ⌥↓ move to the beginning and end of a paragraph.

As Chris Johnsen points out in the comments, you can also use "other Emacs-like bindings (⌃F: →, ⌃B: ←, ⌃N: ↓, ⌃P: ↑, ⌃T: transpose (swap) characters)". Chris also mentions some interesting subtleties with soft-wrapped text, where "⌃A and ⌃E work on the whole line while ⌘← and ⌘→ work on the current portion of the display-wrapped line". Thanks For that.

Not sure if this is what your vague question was referring to, but you can definitely move the cursor using the keyboard almost anywhere in Mac OS X.

link|improve this answer
+1 for the correct ⌃ rather than the easy-but-incorrect ^ :-) – Arjan Jan 9 '10 at 19:05
Note that ⌃A and ⌃E can be used in most Cocoa text controls along with many other Emacs-like bindings (⌃F: →, ⌃B: ←, ⌃N: ↓, ⌃P: ↑, ⌃T: transpose (swap) characters). Also, for long lines that are “soft wrapped”, ⌃A and ⌃E work on the whole line while ⌘← and ⌘→ work on the current portion of the display-wrapped line. – Chris Johnsen Jan 9 '10 at 19:10
Haha, well I guess this wasn't what the OP was looking for (which makes sense now, in retrospect). Hopefully someone can make use of this info. – fideli Jan 10 '10 at 1:29
feedback

Your Answer

 
or
required, but never shown

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