Services & Resources / Wolfram Forums
-----
 /
MathGroup Archive
2007
*January
*February
*March
*April
*May
*June
*July
*August
*September
*October
*Archive Index
*Ask about this page
*Print this page
*Give us feedback
*Sign up for the Wolfram Insider

MathGroup Archive 2007

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

Search the Archive

Re: Hotkeys - redefine

  • To: mathgroup at smc.vnet.net
  • Subject: [mg77505] Re: Hotkeys - redefine
  • From: Szabolcs <szhorvat at gmail.com>
  • Date: Mon, 11 Jun 2007 04:20:12 -0400 (EDT)
  • Organization: University of Bergen
  • References: <f43do2$g0$1@smc.vnet.net> <200706090931.FAA17480@smc.vnet.net> <f4gn0f$hqj$1@smc.vnet.net>

Murray Eisenberg wrote:
> What, exactly, does one enter in KeyEventTranslations.tr?  I've tried 
> each of the following (I think), but each gives an error:
> 
>    Item[KeyEvent["[", Modifiers -> {Control}], LeftDoubleBracket]
>    Item[KeyEvent["[", Modifiers -> {Control}], "LeftDoubleBracket"]
>    Item[KeyEvent["[", Modifiers -> {Control}], "\[LeftDoubleBracket]"]
> 

Find the line
EventTranslations[{

and enter the following right after it:

Item[KeyEvent["[", Modifiers -> {Control}], 
FrontEndExecute[{FrontEnd`NotebookWrite[FrontEnd`SelectedNotebook[], 
"\[LeftDoubleBracket]", After]}]],

Item[KeyEvent["]", Modifiers -> {Control}], 
FrontEndExecute[{FrontEnd`NotebookWrite[FrontEnd`SelectedNotebook[], 
"\[RightDoubleBracket]", After]}]],

Make sure that you do not create any other files with the extension .tr 
in that directory, otherwise this may not work (I made this mistake when 
I backed up the file).

Szabolcs


  • Prev by Date: Re: Trouble with TraditionalForm in Mathematica 6.0
  • Next by Date: simplification of 0/0 to 1?
  • Previous by thread: Re: Re: Hotkeys - redefine
  • Next by thread: Re: Re: Hotkeys - redefine