That did the trick! Thanks! It's a bit complicated... My app is a todo list, and i kind of have a symmetric concept (touch vs. keyboard) there's basically nothing you can't do in either of them. Theoretically there could be an infinity of views, and it would be a little too much overhead to set them all as non-focusable just for this + the way i see it (in my context) using the trackball would be a long way around any existing function.
But thanks for the tip; anyway, will pass this through user feedback too, so no one gets hurt :) On Sun, Mar 1, 2009 at 6:45 PM, Marco Nelissen <[email protected]> wrote: > > You could try grabbing it in dispatchKeyEvent(), however if another > view (visibly) has focus, then your application's users are going to > be confused when pressing the trackball does not invoke the selected > item, but does something else instead. Can you make your views > non-focusable instead? > > > > > On Sun, Mar 1, 2009 at 8:24 AM, Teo <[email protected]> wrote: > > > > Hi, > > > > what i'm trying to do is make the DPAD_CENTER key be a shortcut for a > > specific feature. But sometimes a certain view has focus and no matter > > how i try to clear the focus or implement the event handling i can't > > override the activation of that selected view.. (And yes, i return > > true in the onKeyDown function :) > > > > Thanks, > > Teo > > > > > > > > > -- Teo (a.k.a. Teominator a.k.a. Teodor Filimon) site www.teodorfilimon.com | blog www.teodorfilimon.blogspot.com GMT +2 --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~----------~----~----~----~------~----~------~--~---

