# Version 10.2, key shortcuts for matching brackets do not work?

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.

• Well, I noticed this yesterday... Jul 26, 2015 at 12:44
• 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. Jul 26, 2015 at 12:49
• Thanks. Good to know it is not just me... Jul 26, 2015 at 12:52
• 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! Jul 26, 2015 at 20:20
• @NevenCaplar ctrl + 6 for nice superscript works. Jul 28, 2015 at 19:21

## 1 Answer

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[{
FrontEndNotebookWrite[FrontEndInputNotebook[], "{", After],
FrontEndNotebookWrite[FrontEndInputNotebook[], "}", Before]
}]
],

Item[KeyEvent[")", Modifiers -> {Command, Shift}],
FrontEndExecute[{
FrontEndNotebookWrite[FrontEndInputNotebook[], "(", After],
FrontEndNotebookWrite[FrontEndInputNotebook[], ")", Before]
}]
],


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

• (+1) I think it would be convenient to have these in the package. Jul 28, 2015 at 8:32
• @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 ... Jul 29, 2015 at 15:42