Welcome to the official BlackBerry Support Community Forums.

This is your resource to discuss support topics with your peers, and learn from each other.

inside custom component

Native Development

Posts: 97
Registered: ‎07-17-2008
My Device: Not Specified

Capturing KeyPress event

Hi all,


I wanted to develope code to capture the key press event and get the pressed key char.

How to implement it using cascades and native sdk?


Earlier In JDE, we were using KeyListener interface for capturing key press event. What needs to be done cascades?


Kindly let me know.



Thanks and regards,


Posts: 6,473
Registered: ‎12-08-2010
My Device: PlayBook, Z10
My Carrier: none

Re: Capturing KeyPress event

The answer is probably no longer required, but in case anyone else comes across this question, as of 10.1 we have KeyListener in Cascades as well. See https://developer.blackberry.com/native/documentation/cascades/device_comm/shortcuts/keylistener.htm...

Peter Hansen -- (BB10 and dev-related blog posts at http://peterhansen.ca.)
Author of White Noise and Battery Guru for BB10 and for PlayBook | Get more from your battery!