Welcome!

Welcome to the Official BlackBerry Support Community Forums. This is your resource to discuss support topics with your peers, and learn from each other. New to the forum? Please visit the ‘Getting Started’ link below.
inside custom component

Java Development

Reply
Developer
ratheeshrkurup
Posts: 59
Registered: ‎10-31-2011
My Carrier: JDE
Accepted Solution

how to detect ALT key pressed in os7

Hai,

How to detect ALT key pressed in Os7...

Can I use the below source for os 7 also? ,

protected boolean keyStatus(final int keycode, final int time) {

if (Keypad.key(keycode) == Keypad.KEY_ALT) {

...

return true;

} else

return super.keyStatus(keycode, time);

}

and also I want to know which is the return of this method? In Detail
How to detect other key press also?
what are the updations or modifications in code, os7 over os6?

Regards
Ratheesh R Kurup
Please use plain text.
Developer
simon_hain
Posts: 14,051
Registered: ‎07-29-2008
My Carrier: O2 Germany

Re: how to detect ALT key pressed in os7

the keycode is a bit pattern, if you use '==' to compare it you won't get accurate results, you have to use the '&' operator.

see
http://supportforums.blackberry.com/t5/Java-Development/Detect-Alt-and-Shift-key-clicks/ta-p/444976
----------------------------------------------------------
feel free to press the like button on the right side to thank the user that helped you.
please mark posts as solved if you found a solution.
@SimonHain on twitter
Please use plain text.
Developer
ratheeshrkurup
Posts: 59
Registered: ‎10-31-2011
My Carrier: JDE

Re: how to detect ALT key pressed in os7

Hai, Which JDE version used for BlackBerry os7 development?
Can I use JDE5 to develop os7 source?
Regards
Ratheesh R Kurup
Please use plain text.
Developer
peter_strange
Posts: 17,952
Registered: ‎07-14-2008

Re: how to detect ALT key pressed in os7

OS development is mostly forward compatible, in that something you develop in OS 5.0 should work in OS 7.0.  However if you are developing only for OS 7.0 and above devices, I would recommend that you establish an OS 7.0 development environment and use that.  This will mean you get full access to the new facilities in OS 7.0, like the new Ui Fields and control mechanism. 

 

To answer your questions directly:

 

Q: Which JDE version used for BlackBerry os7 development?

A: Any JDE up to and including JDE 7, but I personally would not recommend anything earlier than 5.0
Q: Can I use JDE5 to develop os7 source?

A: Yes. 

Please use plain text.