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

Native Development

Reply
Contributor
Posts: 11
Registered: ‎12-13-2012
My Device: Blackberry Z10, Blackberry Playbook 16GB/64GB
My Carrier: Rogers

Catch ?123 and caps key press

Is there a way to detect when the ?123 or caps key is pressed on the Z10 in a Qt app?

 

 

Developer
Posts: 1,068
Registered: ‎11-24-2011
My Device: PlayBook
My Carrier: x

Re: Catch ?123 and caps key press

What's '?123' - sequence of keys?

Contributor
Posts: 11
Registered: ‎12-13-2012
My Device: Blackberry Z10, Blackberry Playbook 16GB/64GB
My Carrier: Rogers

Re: Catch ?123 and caps key press


BGmot wrote:

What's '?123' - sequence of keys?


I was just going to call it the alt key but it doesn't say alt on the Z10. It's a single key that switches from the letter keyboard to the symbol keyboard and says '?123' on it.

Developer
Posts: 1,068
Registered: ‎11-24-2011
My Device: PlayBook
My Carrier: x

Re: Catch ?123 and caps key press

Oh I see. You might wish to play with Qt::KeyboardModifiers (like Qt:Smiley FrustratedhiftModifier, Qt::AltModifier etc).

For CAPS you should just receive different Key codes as ANSI 'a' and 'A' have different code values.

Highlighted
Contributor
Posts: 11
Registered: ‎12-13-2012
My Device: Blackberry Z10, Blackberry Playbook 16GB/64GB
My Carrier: Rogers

Re: Catch ?123 and caps key press


BGmot wrote:

Oh I see. You might wish to play with Qt::KeyboardModifiers (like Qt:Smiley FrustratedhiftModifier, Qt::AltModifier etc).

For CAPS you should just receive different Key codes as ANSI 'a' and 'A' have different code values.


As far as I know you can only get Qt::KeyboardModifiers when a QKeyEvent is thrown. I would like to detect when the button itself is pressed not just when another button has been pressed in conjunction with it.

Developer
Posts: 1,068
Registered: ‎11-24-2011
My Device: PlayBook
My Carrier: x

Re: Catch ?123 and caps key press

Sorry, again misunderstood you. Then I don't know the answer.

Contributor
Posts: 11
Registered: ‎12-13-2012
My Device: Blackberry Z10, Blackberry Playbook 16GB/64GB
My Carrier: Rogers

Re: Catch ?123 and caps key press


BGmot wrote:

Sorry, again misunderstood you. Then I don't know the answer.


Thanks for trying.