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.

inside custom component

Web and WebWorks Development

Reply
Trusted Contributor
Posts: 120
Registered: ‎10-25-2010
My Device: Not Specified
Accepted Solution

Catch Key press on letter D

Hi,

 

The letter D is usually use to go up.

How can I catch this event (Key press on D) in my widget ?

 

OS = 5

 

Thank you

Trusted Contributor
Posts: 120
Registered: ‎10-25-2010
My Device: Not Specified

Re: Catch Key press on letter D

Do you think that I can create a javascript extension to catch the key press on letter D ?

Retired
Posts: 3,708
Registered: ‎10-16-2008
My Device: Z10
My Carrier: Rogers

Re: Catch Key press on letter D

You could create an extension... I have seen others tackle the problem by having an hidden input box and setting focus to it.

 

You can trap key presses, but it will only happen when you have focus on an input box.  You are not able to trap key strokes of a general DOM element.

Tim Neil
Director, Application Platform & Tools Product Management
Follow me on Twitter