MathGroup Archive 1999

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

Search the Archive

Creating a keyboard Shortcut

  • To: mathgroup at smc.vnet.net
  • Subject: [mg18893] Creating a keyboard Shortcut
  • From: phbrf at t-online.de (Peter Breitfeld)
  • Date: Sun, 25 Jul 1999 03:30:22 -0400
  • Organization: das ist ein breites Feld ...
  • Sender: owner-wri-mathgroup at wolfram.com

I tried to make AltGr-e to be a shorcut for \[Element]. I run Mathematica 4.0 on
Linux.

So I added the following line in .../KeyEventTranslations.tr:

Item[KeyEvent["e", Modifiers -> {Option}],
    FrontEndExecute[
      FrontEnd`NotebookWrite[FrontEnd`SelectedNotebook[], "\\[Element]"]]],

but this doesn't work. Only an "e" is displayed. If I enter the same
FrontEndExecute[...]-statement in the notebook, it inserts \[Element] as
expected. I tried "\[Element]" instead of "\\[Element]" and
some other variations too.

I remember to have used this in Mathematica 3 to get the {[]} working.

Any hints?

Gruss, Peter
-- 
=--=--=--=--=--=--=--=--=--=--=--=--= http://home.t-online.de/home/phbrf
  Peter Breitfeld, Saulgau, Germany        PGP public key:  08548045


  • Prev by Date: PercentileBarChart
  • Next by Date: how to calculate surfuce and content of ellipse shapes?
  • Previous by thread: Re: PercentileBarChart
  • Next by thread: Re: single precision complex bug in g77 - was Testing g77 with LAPACK 3.0