View Full Version : Supporting Blackberry Webworks trackball/mouse

4 Nov 2011, 1:24 PM
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
Problem is we don't support non-touch blackberry devices.

17 Nov 2011, 10:43 AM
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
Sorry for self-plug but see my blogpost. This was for ST1.1, I haven't tried it on ST2


18 Nov 2011, 8:18 AM
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
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
Hi, 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 (v6.0.0.534, , platform
I ve tested the st2-pr3 and the st2-gpl final release with same results

This is the application I'm testing:

<!DOCTYPE html>
<meta charset="utf-8">
<script type="text/javascript" src="sencha-touch-all-debug.js"></script>
<script type="text/javascript">
onReady: function() {

Please, could you tell me what devices have you tested, and if you know how can I debuggin from a phisical device?

30 Mar 2012, 10:01 AM
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....