2
$\begingroup$

The fraction shortcut is not working.

Any change in my file KeyEventTranslations.tr in my directory /usr/local/Wolfram/Mathematica/10.3/SystemFiles/FrontEnd/TextResources/X gets ignored.

How to (possibly) reproduce it:

  1. Go to

    FileNameJoin[
      {$InstallationDirectory, 
       "/SystemFiles/FrontEnd/TextResources/X/KeyEventTranslations.tr"}]
    
  2. Do ANY change and save the file. For example: Make a " in the beginning of the file or change

    Item[KeyEvent["Up"], "MovePreviousLine"], 
    Item[KeyEvent["KP_Up"], "MovePreviousLine"], 
    Item[KeyEvent["Down"], "MoveNextLine"], 
    Item[KeyEvent["KP_Down"], "MoveNextLine"],
    

    to

    Item[KeyEvent["Up"], "MoveNextLine"], 
    Item[KeyEvent["KP_Up"], "MoveNextLine"], 
    Item[KeyEvent["Down"], "MovePreviousLine"], 
    Item[KeyEvent["KP_Down"], "MovePreviousLine"],
    
  3. Open Mathematica 10.3 and see if anything changed.

  4. In my case nothing changes. There is no reaction to any change I do.

I'm using Mathematica 10.3 on Ubuntu 14.04.3 LTS and this file of KeyEventTranslations.tr is the only one on my harddrive.

How can that be and what can I do to make it work?

$\endgroup$
  • $\begingroup$ If it helps, I'm happy to provide you with further information. $\endgroup$ – ungerade Dec 4 '15 at 13:19
  • $\begingroup$ Welcome to Mathematica.SE! I suggest the following: 1) As you receive help, try to give it too, by answering questions in your area of expertise. 2) Take the tour! 3) When you see good questions and answers, vote them up by clicking the gray triangles, because the credibility of the system is based on the reputation gained by users sharing their knowledge. Also, please remember to accept the answer, if any, that solves your problem, by clicking the checkmark sign! $\endgroup$ – Michael E2 Dec 4 '15 at 13:25
  • 1
    $\begingroup$ Without further information nobody will be able to answer this. Also, changes to this file definitely have an effect and are not ignored. $\endgroup$ – sebhofer Dec 4 '15 at 13:27
  • 2
    $\begingroup$ @sebhofer I can confirm issue. Here is a workaround mathematica.stackexchange.com/questions/1606/… $\endgroup$ – William Dec 4 '15 at 18:17
  • 1
    $\begingroup$ I can confirm the issue: from 10.3 on, the custom shortcuts in KeyEventTranslations.tr are not taken into account. It was OK up to v 10.1 I think... $\endgroup$ – coussin Feb 19 '16 at 9:16
0
$\begingroup$

I found a fix that worked in my case:

  1. Open MenuSetup.tr (in my case, on Linux, it was in /usr/local/Wolfram/Mathematica/10.3/SystemFiles/FrontEnd/TextResources/X/MenuSetup.tr)

  2. Change

MenuItem["&Fraction", "Fraction", MenuKey["/", Modifiers->{"Control"}]],

to (add ,"Shift")

MenuItem["&Fraction", "Fraction", MenuKey["/", Modifiers->{"Control","Shift"}]],

  1. Restart Mathematica
$\endgroup$
  • $\begingroup$ Thanks for your hint. It works also for me Mathematica 10.2 Ubuntu 16.04 LTS. $\endgroup$ – Eik Feb 27 '17 at 16:36

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.