4 Nov 2011 1:24 PM #1
Supporting Blackberry Webworks trackball/mouse
In trying to get TabBar buttons working with a blackberry trackball/mouse in a webworks packaged application, I've discovered that Blackberry supports an x-blackberry-focusable="true" (or false) attribute on elements which enables them to be focusable by scrolling the trackball. This doesn't actually make it work, though. It also needs to support a 'click' event which I have faked by creating my own Ext.Button subclass and adding a click handler since the Ext.Button init method only tacks on tap events. This only works on buttons that I specifically create with my own xtype, I'm not sure how to get it to work with the automatically generated back button in a NestedList (for instance). Which also brings up the point that items in a list/nested list are not clickable either.
Are there any quick work-arounds that would enable both tap and click events to be registered everywhere? Is this something that could make it into the next release?
17 Nov 2011 9:44 AM #2
- Join Date
- Mar 2007
- Gainesville, FL
- Vote Rating
Problem is we don't support non-touch blackberry devices.Mitchell Simoens @SenchaMitch
Sencha Inc, Senior Software Engineer
Check out my GitHub, lots of nice things for Ext JS 4 and Sencha Touch 2
Think my support is good? Get more personalized support via a support subscription. https://www.sencha.com/store/
Need more help with your app? Hire Sencha Services email@example.com
Want to learn Sencha Touch 2? Check out Sencha Touch in Action that is in print!
When posting code, please use BBCode's CODE tags.
17 Nov 2011 10:43 AM #3
I realize that What I am suggesting is that it is theoretically it shouldn't be too hard to support non-touch events since the framework does already support them for browsers and, if you add a handler for click as well as touch it will actually work. What I could not discover (and I wasn't sure if I should be hacking around in the core) is how to generically enable routing touch and click events to the same handlers when running on a mobile device. I believe this is worth doing as all blackberry phones seem to include the trackball and users seem trained to use it.
18 Nov 2011 7:58 AM #4
18 Nov 2011 8:18 AM #5
Interesting ... hopefully I can get to try this out shortly and report back here. It would be great if Sencha would add this to the main code base!
18 Nov 2011 8:20 AM #6
Yup, if you see my other post I show how to set up a listener on scrolling with the ball since you can't touch and scroll on some BB OS6 devices. (make sure to check comments, some have their own implementations that may/may not be better)
21 Mar 2012 6:13 AM #7Hi, I'm trying to start working with st2 for blackberry. I'm using a bold 9780 with os6 I have not tested yet your proposal to scrolling using the trackball but I want to incorporate it to my application. Before it, I have an issue I need to solve:
I have an application that works (more o less) in the emulator but in a phisical device doesn't render anything.
Doing some testing I've discovered that the sencha-touch-all-debug.js is not fully loaded. Seems stop loading at any moment and only what I get is a blank screen.
Since this only occur in the phisical device I have not so much alternatives to inspect where the problem is.
Here you have the details of the device:
Blackberry 9780 (3G, Wifi)
6.0 Bundle 2391 (v18.104.22.1684, , platform 22.214.171.124)
I ve tested the st2-pr3 and the st2-gpl final release with same results
This is the application I'm testing:
30 Mar 2012 10:01 AM #8
FidoX, sencha-touch-all-debug.js is pretty big, try the non-debug version sencha-touch-all.js
Also, I've found Sencha Touch 2 too slow for BB6 so I've had to bump the min requirements to BB7....