Beefy Boxes and Bandwidth Generously Provided by pair Networks
laziness, impatience, and hubris

Re^2: Tab Order for Widgets in HList

by Anonymous Monk
on Oct 19, 2011 at 13:31 UTC ( #932401=note: print w/replies, xml ) Need Help??

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 (Chancellor) 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');

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://932401]
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others meditating upon the Monastery: (12)
As of 2016-10-24 07:21 GMT
Find Nodes?
    Voting Booth?
    How many different varieties (color, size, etc) of socks do you have in your sock drawer?

    Results (303 votes). Check out past polls.