Starting in December, we will archive content from the community that is 10 years and older. This FAQ provides more information.
I have noticed in many parts of the Fusion 360 UI that tabbing among fields and buttons does not work correctly and buttons fail to highlight when focused. I am just going to provide one simple example here.
I have created an add-in that displays a dialog using the Python API. When the dialog is presented the OK button is disabled because there is no body selected. This is as expected. After selecting a body the OK button is enabled, as shown in the second image.
Problems:
- the tab key should cycle the focus among the dialog elements that allow focus. Given that the dialog starts with the body selection field focused I would expect tab to move to the next field that is not disabled. However tab does nothing. There is no way to switch focus to the cancel button with the keyboard. (This is not a big problem because escape will close the dialog.
- when a body is selected, the selected button is still highlighted making it appear that it still has focus. I accidentally discovered (muscle memory from other applications) that hitting the enter key at this point selects OK and the dialog closes. I would have expected that selecting a body would change focus to the OK button and indicate that with some form of highlighting to make it obvious to the user that they can hit enter to select OK.
- tabbing when a body is selected again does nothing. The body selection field is always highlighted and the OK button is always focused.
Here is an example from the file dialog that opens when I select OK above.
Notice how the focused button is obvious. I can either use tab or the arrow keys to change the focused button. There are also shortcut keys shown with an underline that can be used instead of clicking with the mouse, or hitting enter.
Can't find what you're looking for? Ask the community or share your knowledge.