How can I disable tabbing between UI elements? I.e. prevent change of selected element/first responder when user hits the tab key.
You should not do this, unless you want to annoy your users and really annoy handicapped users.
And still, I want to. Anyone know how?
Why do you want to hinder the accessibility and usability of your app?
(Don’t get angry! Sometimes solving a problem is more than just answering the question asked. :-))
I agree with you Mikey, but let’s try rephrasing that.
Knaster, what are you trying to do that would require you to circumvent the normal behavior of the tab key?
Sorry, didn’t mean to sound angry! I’m not. Well, my app is controlled by keyboard input only. The input is made in the text field of a (hidden) window. Tabbing will change the window’s first responder to another element in the same window, thus preventing the user to control the app. This is why I would like to find a way to disable the default tab behaviour. I could, of course, make my idle handler set the first responder constantly, but I thought there might be a better solution.
Hmm, what exactly does this app do? A solution may not be visible until the scope is more apparent.