Mathematica Stack Exchange is a question and answer site for users of Mathematica. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

Related: Automating Esc [[ Esc formatting?

In previous versions of Mathematica, I could add these lines to my file, to map Ctrl+[ to [[:

Item[KeyEvent["8", Modifiers -> {Control}],
                "\[LeftDoubleBracket]", After]
Item[KeyEvent["9", Modifiers -> {Control}],
                "\[RightDoubleBracket]", After]

(I had to modify @rmrf's original key binding, because there are no [ and ] keys on a German keyboard. They're under the 8 and 9 keys, so I mapped those. I also had to comment out the other occurrence of KeyEvent["9", Modifiers -> {Control}, in the same file.)

In Mathematica 10, this works for Ctrl+8, but not for Ctrl+9, so I'm guessing Ctrl+9 is bound to something else.

Is there a way to find out where Ctrl+9 is mapped (so I can change it there)? It's not listed under tutorial/KeyboardShortcutListing, and I couldn't find it by grep'ing for KeyEvent["9" in the SystemFiles folder

share|improve this question
This doesn't answer your more general question, but Ctrl+9 inserts an inline cell within a cell of compatible style (e.g., Text). – mfvonh Jul 12 '14 at 12:11
@mfvonh: I just realized that my question was only half true: I did find another KeyEvent["9", in the same file, mapped to CreateInlineCell. I commented that out already - but it still seems to be active. Sadly, these EventTranslations seem to be completely undocumented. – nikie Jul 12 '14 at 12:18
up vote 4 down vote accepted

@mfvonh's comment told me where to look: Apparently, the MenuKey in also binds a key to a command. So Ctrl+9 was bound twice, in and again in Once I removed/changed both bindings, I could re-bind Ctrl+9 to ]].

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

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