Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.soft-sys.math.mathematica > #1721

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

From "Alexey Popkov" <lehin.p@gmail.com>
Newsgroups comp.soft-sys.math.mathematica
Subject How to define FrontEndEventActions for keyboard combinations with Shift and Alt?
Date 2011-04-16 11:36 +0000
Organization Steven M. Christensen and Associates, Inc and MathTensor, Inc.
Message-ID <iobuvt$bev$1@smc.vnet.net> (permalink)

Show all headers | View raw


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

Back to comp.soft-sys.math.mathematica | Previous | Next | Find similar | Unroll thread


Thread

How to define FrontEndEventActions for keyboard combinations with Shift and Alt? "Alexey Popkov" <lehin.p@gmail.com> - 2011-04-16 11:36 +0000

csiph-web