Page 1 of 1

Disabling keyboard shortcuts to cards

Posted: Thu Mar 11, 2010 6:46 pm
by ibe
My application has four cards. They are shown depending on which tab or button a user has pressed. I would like to disable changing cards by using the keyboard shortcuts (cmd-2 Go Prev, cmd-3 Go Next, etc.). Can this be done? At least I would need to disable it in the standalone as the rest of the user interface does not change accordingly. Or can I trap these keyboard events and decide if I want to pass them on for default behaviour.

Re: Disabling keyboard shortcuts to cards

Posted: Thu Mar 11, 2010 7:00 pm
by Klaus
Hi ibe,

the IDE <> standalone!
That means if you do not add these shortcuts (in a menu or whatever) to your application, then this will of course not work in your standalone! :)

But one can use the arrokeys left/right to navigate!
To prevent this just add this line to your "preopenstack" or "openstack" script:
...
set the navigationarrows to false
...

Hope that helps!


Best

Klaus

Re: Disabling keyboard shortcuts to cards

Posted: Thu Mar 11, 2010 7:12 pm
by ibe
Thanks Klaus, just what I needed.

Re: Disabling keyboard shortcuts to cards

Posted: Thu Mar 11, 2010 7:19 pm
by massung
Klaus wrote:But one can use the arrokeys left/right to navigate!
Wow, I did not know this. I'm glad I stumbled upon this.

Jeff M.

Re: Disabling keyboard shortcuts to cards

Posted: Thu Jun 10, 2010 9:40 am
by Johdu
@Klaus
Thank you for "set the navigationarrows to false" ... still learning!

johdu