Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [platform-swt-dev] FocusGained, but in which direction


The traverse event tells you which direction the traversal is going to be (event.detail == SWT.TRAVERSE_TAB_NEXT etc).  The focus event does not have direction because direction does not always make sense - what if I just click on a widget to give it focus, what direction was that? - what if focus was set programmatically?



"Randy Hudson" <hudsonr@xxxxxxxxxx>
Sent by: platform-swt-dev-admin@xxxxxxxxxxx

08/04/2002 12:32 PM
Please respond to platform-swt-dev

       
        To:        platform-swt-dev@xxxxxxxxxxx
        cc:        
        Subject:        [platform-swt-dev] FocusGained, but in which direction


When my Canvas receives focus, I need to know if the user was possibly
doing a Shift+TAB to set focus on my Canvas.  The reason being that my
Canvas has its own focusable regions, and I need to traverse them in
Front-to-back or back-to-front order, depending on the traverse event
(which I can do).  However, the arrival of focus seems to not have a
direction, so I have to always start at the front even if the user is
trying to TAB backwards.

_______________________________________________
platform-swt-dev mailing list
platform-swt-dev@xxxxxxxxxxx
http://dev.eclipse.org/mailman/listinfo/platform-swt-dev



Back to the top