10
$\begingroup$

Bug introduced in 10.2

  • System: Linux

Once updated to 10.2, my Alt+} and Alt+) do not return a pair of brackets but a single right one, as if Alt is not pressed. Alt+] still works.

$\endgroup$
  • $\begingroup$ Well, I noticed this yesterday... $\endgroup$ – halirutan Jul 26 '15 at 12:44
  • $\begingroup$ I cleaned your question. I have the same issue, so changes to your KeyEventTranslations.tr are not the issue. Additionally, I added the standard header for bugs. $\endgroup$ – halirutan Jul 26 '15 at 12:49
  • $\begingroup$ Thanks. Good to know it is not just me... $\endgroup$ – Chromatic Jul 26 '15 at 12:52
  • $\begingroup$ Just for the record, I'm running Windows and don't have the problem. Actually, I didn't know about that shortcut until I read this post. Thanks! $\endgroup$ – Mitchell Kaplan Jul 26 '15 at 20:20
  • 1
    $\begingroup$ @NevenCaplar ctrl + 6 for nice superscript works. $\endgroup$ – Chromatic Jul 28 '15 at 19:21
5
$\begingroup$

If you add this to your KeyEventTranslations.tr file it works on Linux (I only tested english keyboard layout):

 Item[KeyEvent["}", Modifiers -> {Command, Shift}],
    FrontEndExecute[{
        FrontEnd`NotebookWrite[FrontEnd`InputNotebook[], "{", After],
        FrontEnd`NotebookWrite[FrontEnd`InputNotebook[], "}", Before]
    }]
    ],

    Item[KeyEvent[")", Modifiers -> {Command, Shift}],
    FrontEndExecute[{
        FrontEnd`NotebookWrite[FrontEnd`InputNotebook[], "(", After],
        FrontEnd`NotebookWrite[FrontEnd`InputNotebook[], ")", Before]
    }]
    ],

If so desired (and if I find time) I could add this to the Shortcuts` package.

$\endgroup$
  • $\begingroup$ (+1) I think it would be convenient to have these in the package. $\endgroup$ – Alexey Popkov Jul 28 '15 at 8:32
  • $\begingroup$ @AlexeyPopkov I tried shortly yesterday to update the documentation, but something did not work with my version of Workbench and Mathematica 10.2. I wished it would be easier to write documentation ... $\endgroup$ – Rolf Mertig Jul 29 '15 at 15:42

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.