in reply to Re: Tab Order for Widgets in HList
in thread Tab Order for Widgets in HList

And the smart way
$mw -> bind('all','<Tab>', sub { $Tk::event->W ->focusPrev; Tk::break(); } ); $mw -> bind('all','<Shift-Tab>', sub { $Tk::event->W ->focusNext; Tk::break(); } );

Replies are listed 'Best First'.
Re^3: Tab Order for Widgets in HList
by choroba (Cardinal) on Oct 19, 2011 at 13:52 UTC
    Very nice! But, for me, Shift-Tab does not work, I have to specify Shift-ISO_Left_Tab :-(
      Checking the source for Tk::MainWindow reveals that it uses the virtual <<LeftTab>>, so this should work for all, and its even simpler
      $mw->bind('all','<Tab>','focusPrev'); $mw->bind('all','<<LeftTab>>','focusNext');