Message Boards Message Boards

0
|
5767 Views
|
1 Reply
|
0 Total Likes
View groups...
Share
Share this post:

Modify keyboard shortcuts?

Posted 6 years ago

Hello,

I am a new user and am trying to learn how to modify keyboard shortcuts.

I am using OSX 10.14 and Mathematica 12.0.

Say the default file is /Applications/Mathematica.app/Contents/SystemFiles/FrontEnd/TextResources/Macintosh/KeyEventTranslations.tr

and the user file is /Users/matt/Library/Mathematica/SystemFiles/FrontEnd/TextResources/Macintosh/KeyEventTranslations.tr

My understanding is I should copy the default file to the user file and then make my changes in the user file. However, whether I make changes in either the default file or the user file, these changes never take effect. For example in both files I commented the following line: (* Item[KeyEvent["2", Modifiers -> {Control}], "Radical"], *)

And I added something which I copied directly from this stack post

Item[KeyEvent["w", Modifiers -> {Control, Shift}],
      FrontEnd`FrontEndExecute[{
         FrontEnd`FrontEndToken["SelectGeneratedCells"],
         FrontEnd`FrontEndToken["Clear"]
     }]]

However, even after restarting Mathematica, Control-2 still inputs the radical and Control-Shift-W still does nothing.

POSTED BY: Matt Groth

I use 13.1 on macOS. We also have to edit MenuSetup.tr in the same folder, and we may have to edit MeneSetup.tr in Language. /Applications/Mathematica.app/Contents/SystemFiles/FrontEnd/TextResources/Japanese/Macintosh/MenuSetup.tr

POSTED BY: hiwon yoon
Reply to this discussion
Community posts can be styled and formatted using the Markdown syntax.
Reply Preview
Attachments
Remove
or Discard

Group Abstract Group Abstract