# How can I prevent SHIFT-ENTER moving the editing cursor?

What I do: Here

press Shift+Enter to evaluate.

What I get: The cursor disappeared

What I want: The cursor retained

Workaround: Up Arrow as many times as it takes, Right arrow as many times as it takes.

Note: Related may be the fact that on Windows Chrome, ALT+TAB, ALT+TAB hides the cursor :(

• I don't think there is a way to do that. But instead of right arrowing, why not just up arrow until you're under the input cell, and then do one left arrow. This takes you to the end of the cell immediately Often that's only three keystrokes. Jul 30, 2015 at 15:25
• closely related: 29396 @community: Close enough to be a duplicate?
– Kuba
Jul 30, 2015 at 15:34
• @Kuba in this case, I don't think so. The FE and cloud are sufficiently different that i don't think they're duplicates. Jul 30, 2015 at 15:59
• If this question is about the programming cloud, please mention is specifically within the body of the post. Do not rely on tags to convey information (at least not in Mma.SE) Jul 30, 2015 at 16:10
• @rcollyer sure, I agree, I have missed WPC reference.
– Kuba
Aug 4, 2015 at 8:55

Is this what you are after?

SetOptions[
EvaluationNotebook[],
CellEpilog :> (
SelectionMove[EvaluationNotebook[], All, EvaluationCell];
SelectionMove[EvaluationNotebook[], After, CellContents];
)
]

• +1 but based on the tags the OP seems to want to do this in the Programming Cloud, where it doesn't work. Jul 30, 2015 at 15:38
• @Szabolcs oh, right, WPC is off topic, isn't it?
– Kuba
Jul 30, 2015 at 15:40
• I wouldn't delete it, it's still a valid answer for the desktop FE. Jul 30, 2015 at 16:09
• @PatrickStevens my understanding is that related software is on-topic if its usage relates to Mathematica, not necessarily its genesis. For example, Wolfram|Alpha is based on Mathematica, but knowing Mathematica does not help one to answer a question about W|A. So, W|A is off-topic here unless the question is about interacting with W|A using Mathematica. (Otherwise, we defer to the experts on that particular product, who are at the Wolfram Community site.) I can imagine a similar argument applying to the Cloud, because it is in a state of flux and none of us really knows how it works. Jul 30, 2015 at 16:11
• Nice code, but how to actually restore the old cursor position, not just going to the end of the previous cell? Nov 21, 2020 at 15:34