KeyEventTranslations: how to make them work with *two* modifiers? (Both Shift and Control)
- To: mathgroup at smc.vnet.net
- Subject: [mg124202] KeyEventTranslations: how to make them work with *two* modifiers? (Both Shift and Control)
- From: Szabolcs Horvát <szhorvat at gmail.com>
- Date: Fri, 13 Jan 2012 04:51:50 -0500 (EST)
- Delivered-to: l-mathgroup@mail-archive0.wolfram.com
Though it's undocumented, it's possible to add the shortcut key Ctrl-Tab for cycling notebooks by adding Item[KeyEvent["Tab", Modifiers -> {Control}], FrontEndExecute[FrontEndToken["CycleNotebooksForward"]]], in KeyEventTranslations.tr I would like to add Ctrl-Shift-Tab for cycling backwards, but it seems Item[KeyEvent["Tab", Modifiers -> {Control, Shift}], FrontEndExecute[FrontEndToken["CycleNotebooksForward"]]], does not work. (The front end token is correct and it works, but Control-Shift-Tab is not noticed.) It seems the front end is seeing Control-Tab even when I hit Control-Shift-Tab. Is there a solution to make it distinguish Control-Tab and Control-Shift-Tab? -- Szabolcs Horv=E1t Mma QA site proposal: http://area51.stackexchange.com/proposals/37304