Re: In search of a keyboard shortcut
- To: mathgroup at smc.vnet.net
- Subject: [mg89926] Re: In search of a keyboard shortcut
- From: vasil michev <michev at gmail.com>
- Date: Tue, 24 Jun 2008 03:32:26 -0400 (EDT)
- References: <g3iht3$fhe$1@smc.vnet.net> <g3nhbn$gi$1@smc.vnet.net>
Thanks a lot, I just added two more keyboard shortcuts to KeyEventTranslations.tr, namely Item[KeyEvent["s", Modifiers -> {Command}], FrontEndExecute[SelectionMove[SelectedNotebook[],All,Cell];]], Item[KeyEvent["a", Modifiers -> {Command}], FrontEndExecute[SelectionMove[SelectedNotebook[],All,CellContents];]], Works great, well you get a 'beep' when using them, since its unable to find a menu with 's' and 'a' for accelerator, but one can always change the keys to avoid this. I only wish they made interface customization easier, or at least put the appropriate info in the help browser. Thanks again. On Jun 23, 9:54 am, David Bailey <dave at Remove_Thisdbailey.co.uk> wrote: > vasil michev wrote: > > Hello, I was wondering if there is a shortcut or some other fast way > > to select the active cell (or its whole content) with the keyboard? I > > know several ways to do it, but all involve multiple actions, and > > thats not what im looking for. > > One way to do this is to add an extra item to the menu. If you use '&' > characters in the extra definition, you can access the menu item using > an alt key combination (Windows) - just as Alt-EP will access edit/paste. > > Find the file MENUSETUP.TR and make a copy of it in case you mess it up > - Mathematica is very unforgiving if it can't read this file! > > Examine the structure of this file using a text editor, and note how it > corresponds to the Mathematica menu. The idea is to add a new item > somewhere in the structure: > > Item["Select &Cell",FrontEndExecute[ > SelectionMove[SelectedNote= book[],All,Cell]; > ], MenuEvaluator->Automatic] > > This will create a menu item with an alt-key combination (depending > where exactly you place it in the menu tree). > > David Baileyhttp://www.dbaileyconsultancy.co.uk