08-07-2009 08:17 PM
I was just wondering if there is any way to find out if a user is holding down a key.
I'm trying to figure out if the user is holding down the menu key to bring up the app switcher. No matter what I try though I can never get any info from the keylistener. Keydown works fine if you just click the key same with key up but if you hold it down and the app switcher opens up then my app loses focus and the key listener never gets called. I was wondering if there is a different way to do this or if I'm just missing something?
08-07-2009 11:01 PM
08-08-2009 01:18 AM
You can use a variable to track the keydown until keyup is called, but I think its been discuseed before that there is no way to override the app switcher so that will not work for the BB menu key.
Thanks cmy the issue I'm having though is the keydown is never called if I hold down the menu key. If I tap the menu key then keydown is called but if I hold it it never gets called for some reason.