Re: How to reverse Enter and Shift-Enter
- To: mathgroup at smc.vnet.net
- Subject: [mg93307] Re: How to reverse Enter and Shift-Enter
- From: m.r at inbox.ru
- Date: Mon, 3 Nov 2008 05:28:05 -0500 (EST)
- References: <geh9hs$f2n$1@smc.vnet.net>
stpatryck wrote: > Hello Fellow Mathematica Users, > > I was wondering if there was a way to make Mathematica evaluate when > hitting Enter alone, and make the cursor go to the next line without > evaluating using Shift-Enter. > > Wouldn't that be easier, since we evaluate more often than go to the > next line? > > > Cheers, > Patrick Don't know about easier, but it's possible: SetOptions[EvaluationNotebook[], NotebookEventActions -> {"ReturnKeyDown" :> FrontEndTokenExecute["EvaluateCells"], {"MenuCommand", "HandleShiftReturn"} :> FrontEndTokenExecute["Linebreak"]}] Maxim Rytin m.r at inbox.ru