List navigation

7 messages - 98 views

I have implemented a list and I want to use only navigation with left-right or only navigation with up-down. Is it possible? I mean can I set the list to be navigable only with up and down and if I press left to happen nothing?

Thanks

public boolean processKeyEvent(byte type,int kuixKeyCode)

 

Thanks

How can I intercept any key which is pressed. What method must be overwitten? I have overwritten processKeyEvent (byte type,int kuixKeyCode) from Screen but is not working.

I want to be noticed every press on a key. Is it possible?

At present there no elegent solution to intercept all key or pointer events.

You can override the processKeyEvent method in a widget, but this method is called only if the widget has the focus.

Basicly the best way would be to intercept event directly from the KuixCanvas but you can't override this class.

Alternatively we can imagine that the canvas could inform the MIDlet for each key or pointer event ...

 

Else I don't undersant why you have a left-right and top-bottom navigation into your list. What sort of list is it ?

A crazy one. I want in a horizonatllylist to be able to navigate into it with up for left and down for right.

Thanks, a lot for advise. Anyway in a future version can be implemented to intercept any key in a more elegant way :) ?

Ho yes, it seems tobe crazy ;) ...

Yes, we will add the possibility to catch key and pointer event in a future version.