I have a window which shows a table on the left half. On the right half I display properties of the item which is selected within the table. The user can now change these properties.
The properties are represented by different kinds of controls:
Besides using the mouse, the user can use the tab key to navigate through the UI Elements. When the tableView has focus, tab will select the first editable item on the right side, then tab walks through the items and after the last item will go to the table again.
When the table (or any other element) has focus and I use the mouse to change the value of a
popUpButton or to move a
slider, the default behaviour of the API (Apple's Cocoa) is to change the value but keep the focus where it was.
My intuition would tell me that after changing a control element it should have the focus (i.e. become
firstResponder). But I checked some of macOS' preference panes and they behave similarly.
In Apple's Human Interface Guidelines I do not find mention of that specific topic.
So my question is:
Is there a guideline or at least best practice an app should follow regarding if a control element like a
slider should get the focus when clicked or edited?
My App also supports a similar enough situation where the user can click an edit button. This will replace the view by a completely different one, but when done editing the previous view should reappear.
Same question here: Which UI element should have the focus after returning from the edit view? My intuition would tell me that the edit-button should have the focus, regardless if it had when it was clicked.