×

Discussion Board

Results 1 to 10 of 10

Thread: Tab navigation

  1. #1
    Registered User
    Join Date
    Sep 2006
    Posts
    26

    Tab navigation

    Is there a way to find out what's the element focused when using the tab mode navigation ? The elements could be pictures with an id and an href to an url address.
    One shortage I noticed is the impossibility of using key event when the cursor mode is set.

  2. #2
    Regular Contributor
    Join Date
    Dec 2007
    Posts
    60

    Re: Tab navigation

    Quote Originally Posted by patmarc View Post
    Is there a way to find out what's the element focused when using the tab mode navigation ? The elements could be pictures with an id and an href to an url address.
    One shortage I noticed is the impossibility of using key event when the cursor mode is set.
    There is no way to query focus but you can use focus/blur events to track focus changes.

    There are some other issues regarding focus in tabbed mode that you will probably run into. First of all focus traversal doesn't always behave the way you'd expect it to based on the spatial layout of elements. Sometimes the focus goes away entirely only to return later after you try to move the focus a bit more. And finally, when commanding focus to some element you can get all kinds of strageness. E.g. if you focus a text field or area you often get crashes when you try to type into the text control after the commanded focus.

    Those issues are good to be aware of so you don't spend hours or days trying to fix something that you can't fix in your own code.

    Peppe

  3. #3
    Nokia Developer Champion
    Join Date
    Nov 2007
    Location
    Rome, Italy
    Posts
    2,405

    Re: Tab navigation

    Surely focus management would need some improvements (tabIndex?) to allow building more user-friendly widgets, or we'll finish implementing multiple custom focus management modes..

    Pit

  4. #4
    Registered User
    Join Date
    Sep 2006
    Posts
    26

    Re: Tab navigation

    I totally agree with Jappi, tab index would be very useful. Presently it's quite tricky to keep track of the tab position. For complex navigation the only option seems to be only in the cursor mode.

    Pat

  5. #5
    Regular Contributor
    Join Date
    Dec 2007
    Posts
    60

    Re: Tab navigation

    Quote Originally Posted by patmarc View Post
    I totally agree with Jappi, tab index would be very useful. Presently it's quite tricky to keep track of the tab position. For complex navigation the only option seems to be only in the cursor mode.
    The upcoming Nokia WRTKit user interface toolkit for S60 WRT Widgets will help a lot in this area.

    Peppe

  6. #6
    Registered User
    Join Date
    Sep 2006
    Posts
    26

    Re: Tab navigation

    Hey Peppe I have the beta version of the WRTKit. Could you develop a bit more in which way the UI toolkit could help me with tab navigation. I didn't take yet the time to study the library and use it, will do that soon . The examples coming with the WRTKit are quite nice. In the RSS reader example the active menu item loses its focus when scrolling up. Is that a known issue related to the WRT or is it only a bug in the code ?
    Thanks for your help
    Pat

  7. #7
    Regular Contributor
    Join Date
    Dec 2007
    Posts
    60

    Re: Tab navigation

    Quote Originally Posted by patmarc View Post
    Hey Peppe I have the beta version of the WRTKit. Could you develop a bit more in which way the UI toolkit could help me with tab navigation. I didn't take yet the time to study the library and use it, will do that soon . The examples coming with the WRTKit are quite nice. In the RSS reader example the active menu item loses its focus when scrolling up. Is that a known issue related to the WRT or is it only a bug in the code ?
    Losing focus is an issue with the WRT and there's nothing you can do about it in your own code. I'm not 100% sure what the circumstances are when it happens, but it appears to happen at least when you have a link that wraps on more than one line and you traverse upwards past it. But it happens in some other situations too so that's not the entire story.

    One of the big ideas in the WRTKit is that widget user interfaces that use it will work with no modifications to the code in both the cursor (pointer) and in tab navigation mode. In the WRTKit you deal on the abstraction level of controls and views - not with HTML elements and web pages. Layout and focus management is entirely managed by WRTKit. This also means that the WRTKit manges tracking of focus for you so that you can register listener callbacks that will get called when the focus moves from one control to another.

    A lot of the "boilerplate" code that you now have to write yourself over and over again in each widget (that you were rightfully complaining about earlier) is done in the WRTKit for you.

    Peppe

  8. #8
    Registered User
    Join Date
    Sep 2006
    Posts
    26

    Re: Tab navigation

    Thanks Peppe I'm looking forward to see the improvements of the WRTKit next release. Any idea when we can expect it ?

  9. #9
    Registered User
    Join Date
    Sep 2009
    Posts
    16

    Re: Tab navigation

    Quote Originally Posted by peppe@peppe.net View Post
    The upcoming Nokia WRTKit user interface toolkit for S60 WRT Widgets will help a lot in this area.

    Peppe
    Where is the documentation on the UI toolkit?

  10. #10
    Regular Contributor
    Join Date
    Apr 2003
    Location
    Akron Ohio USA
    Posts
    229

    Re: Tab navigation

    The documentation is available in the Aptana Studio documentation for WRT. Though, I think Nokia is no longer updating this framework.

Similar Threads

  1. Tab Navigation
    By Kavit Patel in forum Symbian
    Replies: 14
    Last Post: 2008-03-10, 13:03
  2. CONE 44 panic when deleting tab group
    By guderian1 in forum Symbian User Interface
    Replies: 2
    Last Post: 2007-05-22, 11:13
  3. Navigation in Dialog with Tab key
    By pgivy in forum Symbian User Interface
    Replies: 2
    Last Post: 2007-02-01, 09:27
  4. Navigation Panes for Series 60
    By rguia in forum Symbian User Interface
    Replies: 1
    Last Post: 2006-02-24, 15:19
  5. 7650 SetDefaultViewL() doesn't set right navigation tab
    By 4sure in forum Symbian Tools & SDKs
    Replies: 2
    Last Post: 2002-09-25, 09:16

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •