MathGroup Archive 2011

[Date Index] [Thread Index] [Author Index]

Search the Archive

How to define FrontEndEventActions for keyboard combinations with Shift and Alt?

  • To: mathgroup at smc.vnet.net
  • Subject: [mg118206] How to define FrontEndEventActions for keyboard combinations with Shift and Alt?
  • From: "Alexey Popkov" <lehin.p at gmail.com>
  • Date: Sat, 16 Apr 2011 07:35:41 -0400 (EDT)

Good day,

I wish to redefune FrontEndEventActions for two events: pressing Alt+"." 
and pressing Shift+Enter.

I wish to evaluate some code *before* evaluating cell content and 
*before* aborting evaluation. My goal is to have information in the 
kernel when a **user** starts new sequence of evaluations by pressing 
Shift+Enter and when he tries to abort them by pressing Alt+".". I know 
that $Pre allows me to know when a new input line is passed to the 
kernel but it is not what I want since this line can be just one of many 
input lines in a sequence of inputs created by a user when pressing 
Shift+Enter.

Is it possible to do this?

I tried to define actions for different keyboard combinations with Alt 
and Shift but I can not get them working.

Earlier in this newsgroup, I've seen similar questions on 
FrontEndEventActions but none of them was answered.  I'm doing my 
attempt to ask in the hope that someone from the developers pay 
attention to it this time...

Alexey


  • Prev by Date: Another AppendTo replacement problem
  • Next by Date: Re: Trignometric rules
  • Previous by thread: Re: Removing strange characters from mathgroup postings
  • Next by thread: Coloring a ListSurfacePlot3D with a n x 4 matrix