11
$\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$
13
  • $\begingroup$ Well, I noticed this yesterday... $\endgroup$
    – halirutan
    Jul 26, 2015 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, 2015 at 12:49
  • $\begingroup$ Thanks. Good to know it is not just me... $\endgroup$
    – Chromatic
    Jul 26, 2015 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$ Jul 26, 2015 at 20:20
  • 1
    $\begingroup$ @NevenCaplar ctrl + 6 for nice superscript works. $\endgroup$
    – Chromatic
    Jul 28, 2015 at 19:21

1 Answer 1

6
$\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$
2
  • $\begingroup$ (+1) I think it would be convenient to have these in the package. $\endgroup$ Jul 28, 2015 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$ Jul 29, 2015 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.