MathGroup Archive 2003

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

Search the Archive

Re: M5.0 keyboard shortcuts with linux


Omega Consulting wrote:
> There's a file that controls the key codes:
> 
> SystemFiles/FrontEnd/TextResources/(platform)/KeyEventTranslations.tr


this does not always work,

the changes in  KeyEventTranslations.tr  are overwritten
by conflicting settings in  MenuSetup.tr  (in the same directory).

e.g., if you would like to have the emacs C-a (MoveLineBeginning)
you have to add the following line in KeyEventTranslations.tr

   Item[KeyEvent["a", Modifiers -> {Control}], "MoveLineBeginning"],

by default, C-a is bound to "Enter Selection" in the "Find" menu,
therefore, in MenuSetup.tr, you have to remove the last argument from

   Item["Enter Selection",
        "SelectionSetFind", MenuKey["e", Modifiers->{Control}]],


_Question:_

Is it possible to do this not system-wide but only
for a specific user?  Where would I have to place the files?

placing the modified .tr files in the user preferences directory
~/.Mathematica/FrontEnd/5.0_Caches/Linux/SystemFiles/FrontEnd/TextResources/X
(Mathematica 5, Linux) does not seem work
(original location is
  ...Wolfram/Mathematica/5.0/SystemFiles/FrontEnd/TextResources/X)


Thanx,

Marcus Stollsteimer

-- 
Sometimes the delete key is your greatest friend. - Steve Martin


  • Prev by Date: Developing a "custom" special function
  • Next by Date: graph theory
  • Previous by thread: Developing a "custom" special function
  • Next by thread: Re: Re: M5.0 keyboard shortcuts with linux