MathGroup Archive 2007

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

Search the Archive

Re: Hotkeys - redefine


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