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
jonberry
Posts: 435
Registered: 07-17-2008

Alt + Volume on Storm

Does anyone know how to capture Alt + Volume on the Storm 9530 with 5.0?

 

I am able to capture the volume keys but not in combination with the Alt key.

 

I can see the little Alt symbol in the upper right hand corner of the Storm when I press "!?123".

 

I thought that would do it... This works fine on non-touch devices.

 

 

Please use plain text.
Administrator
MSohm
Posts: 10,873
Registered: 07-09-2008
My Carrier: Bell

Re: Alt + Volume on Storm

How are you currently capturing this?  Are you using a KeyListener on a screen within your application or are you using the MediaKeyListener?  Can you provide a code snippet?

Mark Sohm
BlackBerry Development Advisor

Please refrain from posting new questions in solved threads.
Found a bug? Report it using the Issue Tracker
Please use plain text.
Developer
jonberry
Posts: 435
Registered: 07-17-2008

Re: Alt + Volume on Storm

I am overriding keyControl in my screen class and checking the status parameter.

 

protected boolean keyControl(char c, int status, int time)
    {       

 boolean altHeld = false;
        if( (status & KeypadListener.STATUS_ALT) == KeypadListener.STATUS_ALT ) {
            altHeld = true;
           // System.out.println("ALT held in keyControl");
        }

 

}       

 

I don't want to use MediaKeyListener since it's only available in 5.0

Please use plain text.