rotSin
rotSin

Reputation: 251

Navigating backwards using (Ctrl + Tab) key combination

I am (still) in the process of implementing key navigation for an app. I have managed to do just about everything I have set out to do I only have one more tricky issue.

Tab navigation works (cycles through the items I have marked as TabStop). What I want now is to have a functionality that cycles backwards through those elements when I press (Ctrl + Tab). While I know how to catch the event and so forth I don't know if there is a direct way of telling him (the code) to doBackwardsTab() for example; or do I have to implement it by hand? (Get the parent of the currently focused element and then focus the previous child).

P.S: I would love it if there were a doBackwardsTab() thingy ;)

Upvotes: 0

Views: 792

Answers (1)

David Heffernan
David Heffernan

Reputation: 613491

The key press is Shift+Tab and if plain Tab works then Shift+Tab will too.

This is the keypress that all apps use to cycle the focus backwards through your controls. You request in a comment that you want it to use Ctrl+Tab instead. This will destroy the usability of your app. Don't do it. Especially not when the option of doing no coding gives you the right solution!

Upvotes: 3

Related Questions