http://www.perlmonks.org?node_id=214311


in reply to Menubars the slick, sophisticated, New-Fashioned way

Your accelerators should work fine when the menus are posted. If you want the key combinations to work as shortcuts without the menus posted you'll want to bind them to the Toplevel:

$mw->bind('<Control-l>', \&load_file); # Ctrl-L to load a file

Replies are listed 'Best First'.
Re: Re: Menubars the slick, sophisticated, New-Fashioned way
by Anonymous Monk on Nov 20, 2002 at 07:59 UTC
    Thanks, binding accelerators worked. I wish the authors put this information in their book. It would save me a lot of time.