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

The default keyboard shortcut (on Windows at least) for switching focus to the next window is Ctrl+F6, and for switching to the previous windows it's Shift+Ctrl+F6. How can I change this to Ctrl+Tab and Shift+Ctrl+Tab respectively (or some other pair of combinations which is not used by default)?

share|improve this question
You'll want to see this... – J. M. Feb 18 '12 at 1:24
@J.M. this command doesn't appear to be in -- interesting. – Mr.Wizard Feb 18 '12 at 6:26
@Mr. Wizard: it's definitely not in Linux (that's why I couldn't post an answer); have you checked Windows by any chance? – J. M. Feb 18 '12 at 6:29
@J.M. yes, I am on Windows 7 and at least the command is not obvious if it is there; searching for "F6" reveals nothing. – Mr.Wizard Feb 18 '12 at 6:35
This discussion on Mathgroup might be of use here. – István Zachar Feb 18 '12 at 13:30
up vote 20 down vote accepted

You need to add the following to

Item[KeyEvent["Tab", Modifiers -> {Control}],

Item[KeyEvent["Tab", Modifiers -> {Shift, Control}],

This will map Control-Tab and Control-Shift-Tab to cycling between notebooks.

For some reason, using the Tab key sometimes fails, but any alternative shortcut could be used (for example Ctrl-`).

On Windows is located in

share|improve this answer
For example, Item[KeyEvent["`", Modifiers -> {Control}], FrontEndExecute[FrontEndToken["CycleNotebooksForward"]]], works, too. – Andrew MacFie Feb 18 '12 at 14:46
Perhaps Ctrl+Tab fails sometimes because it is already mapped? – Andrew MacFie Feb 26 '12 at 16:31
This solution doesn't seem to work when I want to switch away from a minimized window. – Andrew MacFie Feb 26 '12 at 16:32

Apparently Ctrl+F6 and Ctrl+Shift+F6 are default Windows keyboard shortcuts, although I was only aware of the Tab variants.

Because of this, these commands on not (apparently) configurable from within Mathematica. Further, Mathematica does not recognize the Tab commands.

It may be possible to rig something using SetSelectedNotebook but so far I have failed to do this within the the confines of and Perhaps an EventHandler within a Palette could be made to work but I am tired of this problem.

share|improve this answer
Aha -- they're Windows's, not Mathematica's. – Andrew MacFie Feb 18 '12 at 13:38
FWIW, on a Mac it's CMD + `, and this does work within Mathematica by default. – zentient Jan 21 '14 at 12:32

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.