Giter Site home page Giter Site logo

Comments (9)

nunodonato avatar nunodonato commented on May 27, 2024

I'm on BB7, but here are my 2 main problems with Focus Based Navigation

1 - Focus can't be manually set
Using the standard javascript functions to change focus doesn't work at all. It's also not possible to define initial focus as explained in the API docs: https://bdsc.webapps.blackberry.com/html5/documentation/ww_developing/using_the_navigation_mode_1866978_11.html

2 - Focus is kept even after changing a screen
If after changing screen we don't move the trackpad, the focus remains on the previous' screen selected element. Clicking the trackpad may then result in odd behaviours.
Example: I'm navigating a main menu. Click on an option, and load a new screen. Click again without moving the trackpad and the 2nd screen is pushed a second time.

from bbui.js.

ajurzyk avatar ajurzyk commented on May 27, 2024

Any progress on this issue? Perhaps someone tried to fix this on his own?
This and #1 are quite important issues on BB5

from bbui.js.

tneil avatar tneil commented on May 27, 2024

No progress from my side... I've been heads down working on trying to get the BB10 release of the toolkit out the door for May 1st

from bbui.js.

nunodonato avatar nunodonato commented on May 27, 2024

Just FYI:
Regarding my 1st point above, today I tried using the "autofocus" html5 tag. After the page is loaded it would set the focus appropriately, but somehow the scroll was completely messed up and I could not change the focus to any other button or field, therefore this is also not an option at the moment. (OS 7)

from bbui.js.

 avatar commented on May 27, 2024

Did you ever get this resolved. I am having nightmares with focus based navigation mixed with touch screen tech(some have both) and also pages which are switched on and off using show & hide so I only load one page at the start and then display one of 6 different pages via show and hide. Also my system scrolls and has fixed icon bar at the top. This combination is FROM HELL when it comes to focus based nav. I think it has to do with the fact the focus system need to know where it has come from in order to change focus. This is a problem if where it came from is no longer visible (or even rendered in my case) I use knockoutJS that give the option to not render sections. So even if the item I am trying to set focus too is visible. It just wont do it. I wish there was a 'just set it to this ID' I dont care where it came from. Treat me like I am a first time selection! option.

from bbui.js.

tneil avatar tneil commented on May 27, 2024

Scrollable areas (divs with overflow) just do not work with the WebWorks navigation mode. It will be next to impossible to have a fixed toolbar and scrollable area when using trackpad navigation.

from bbui.js.

 avatar commented on May 27, 2024

Any suggested alternatives Neil?

from bbui.js.

tneil avatar tneil commented on May 27, 2024

Unfortunately, my only suggestion is to not have fixed areas of the screen. Especially on trackpad only devices.

from bbui.js.

 avatar commented on May 27, 2024

Thanks Tim, I do that on devices lower then BB7. Just still gave hellish issues setting the focus on higher end devices.

BTW sorry for getting name wrong on previous post :)

from bbui.js.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.