Mathematica 9 is now available
Services & Resources / Wolfram Forums
-----
 /
MathGroup Archive
2005
*January
*February
*March
*April
*May
*June
*July
*August
*September
*October
*November
*December
*Archive Index
*Ask about this page
*Print this page
*Give us feedback
*Sign up for the Wolfram Insider

MathGroup Archive 2005

[Date Index] [Thread Index] [Author Index]

Search the Archive

keyboard shorcut smorgasbord

  • To: mathgroup at smc.vnet.net
  • Subject: [mg56834] keyboard shorcut smorgasbord
  • From: "Trevor Baca" <trevorbaca at gmail.com>
  • Date: Sat, 7 May 2005 04:16:52 -0400 (EDT)
  • Sender: owner-wri-mathgroup at wolfram.com

mathgroup,

i've been mucking around in KeyEventTranslations.tr setting up keyboard
shortcuts recently and i've learned that front end tokens are pretty
cool. the wolfram page

http://documents.wolfram.com/v5/FrontEnd/FrontEndTokens/

gives pretty good docs.

anyway, here are three that i had to work a little to get going (with
good help from the mathgroup, as always).

* for a quit kernel keyboard shortcut, add the following to
KeyEventTranslations.tr:

        Item[KeyEvent["q", Modifiers -> {Control, Option}],
                FrontEndExecute[
                        FrontEndToken[
                                 SelectedNotebook[ ],
                                 "EvaluatorQuit",
                                 Automatic
                        ]
                ]
        ]

* for an initialization cell toggle keyboard shortcut (repeated from
previous thread), add the following to KeyEventTranslations.tr:

        Item[KeyEvent["i", Modifiers -> {Command, Control}],
                FrontEndExecute[
                        FrontEndToken[
                                SelectedNotebook[ ],
                                "InitializationCell",
                                "Toggle"
                        ]
                ]
        ]

* for a save as package keyboard shortcut, add the following to
KeyEventTranslations.tr:

        Item[KeyEvent["k", Modifiers -> {Control, Option}],
SaveRenameSpecial["Package"]]



trevor.


  • Prev by Date: Re: Re: Plot axis numbers
  • Next by Date: How to quickly find number of non-zero elements in sparse matrix rows?
  • Previous by thread: Re: NSum: badly missed Option
  • Next by thread: How to quickly find number of non-zero elements in sparse matrix rows?