Cool Trick: assign accelerators

Tripp Lilley tlilley@perspex.com
Mon, 30 Jul 2001 04:58:23 +0000 (UTC)


I discovered a cool trick that I believe is an artifact of GTK (apologies
if this is well-known). If you drag down over top of a menu item, then hit
a keychord, that keychord will become the accelerator for the menu item.

So, for instance, I dragged down over "Account->New Account" from the main
account tree's menu, and, leaving my mouse button down, hit "Ctrl+N". Now
Ctrl+N is bound (at least for this session) to "New Account" in that
window (which is wicked helpful, since I'm creating all of the new crap
now).

I also bound it in each of my open account ledger windows, so that I can
fire up the "New Account" dialog when I'm sitting halfway through entering
a transaction and realize one of the accounts I need for the split doesn't
exist.

Cool.

Of course, I don't hold out much hope of those bindings persisting, since
the CVS tree doesn't seem to be keeping various settings persistent right
now :)

-- 
   Tripp Lilley  *  http://stargate.eheart.sg505.net/~tlilley/
--------------------------------------------------------------------------
   "The human soul is the greatest anti-piracy measure in the known
    world, but no major company will use it."

   <http://slashdot.org/comments.pl?sid=01/07/19/007240&cid=94>