NSButton on tab or enter

Hej,


have 2 textfields and one button, if I click with mouse on the button an action start, this works fine.

But I want that all elements can run with keyboard, so will I after fill out the 2 textfields press enter or tab / enter and then ibactions should be run.


But button is not accessable over tab keys its just jump between the 2 textfield. Can anybody help?


regards

Christopher.

Replies

Ok there is a setting in systempreferences / keyboard, can I set this settings on start?

What would you expect when tabbing to the button ? To have the button fired ? That could be very surprising for user, because he would expect to navigate through the textfields and suddenly an action would be triggered without him wanting to do so.

That is not 100% correct. I want that customer can switch with tab to login button and press then enter or space to fire up the function.