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)?
Answer
You need to add the following to KeyEventTranslations.tr
:
Item[KeyEvent["Tab", Modifiers -> {Control}],
FrontEndExecute[FrontEndToken["CycleNotebooksForward"]]],
Item[KeyEvent["Tab", Modifiers -> {Shift, Control}],
FrontEndExecute[FrontEndToken["CycleNotebooksBackward"]]],
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 KeyEventTranslation.tr
is located in
$InstallationDirectory\SystemFiles\FrontEnd\TextResources\Windows
Comments
Post a Comment