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

Java Development

Reply
New Developer
Posts: 24
Registered: ‎07-30-2008
My Device: Not Specified

How to block shortcuts in the application?

How to block shortcuts in the application? For example ALT+Enter shortcut .

Thanks.

Developer
Posts: 19,636
Registered: ‎07-14-2008
My Device: Not Specified

Re: How to block shortcuts in the application?

Are you talking about your applications or other applications?

 

If your applications, then keyChar() method on the Screen may trap these and you can decide if you want to let them through.

 

If not your applications, then no, you can't.

New Developer
Posts: 24
Registered: ‎07-30-2008
My Device: Not Specified

Re: How to block shortcuts in the application?

I'm talking about my application.

I have tried  to trap the keys through KeyListener, but it does not work.

I will try use keyChar in the Screen class. But what differents between key handling in the KeyListener and Screen classes?