Open tspearconquest opened 2 years ago
I did a bunch of other testing but felt it might make the OP too long.
In the Marketplace, if the tab row is focused and a user clicks on the Marketplace tab, then clicks back to the Installed tab, the tab row remains focused.
In the Automation Framework Environment dialog, clicking on either of the Parameters or Variables tabs and then back on the Contexts tab keeps the tab row in focus the same as the Marketplace dialog.
Is your feature request related to a problem? Please describe. When opening dialogs in ZAP Desktop, I've found that if there is a row of tabs at the top of the dialog, the default focus seems to be on that row of tabs instead of the contents of the selected tab.
This causes an extra click to be required in some cases, such as the Environment dialog in the Automation Framework, before interacting with certain elements of the dialog.
In the default setup in a new session, this dialog has just a single context, the Default Context, in a table row in a table in the Contexts tab. But the tab itself is focused instead of the Default Context table row being selected and in focus. And yet the Modify button on the right is enabled despite nothing being selected in the table.
Arguably, the Modify button being enabled may be a bug with the Environment dialog because the Modify button shouldn't be enabled if the table's selection is null, but I opened this as a feature request because this seems to be the default for tabbed dialogs across the ZAP Desktop GUI since I also found the same behavior in the Marketplace dialog -- the tab row is focused by default when dialogs are opened for the first time.
Describe the solution you'd like For the Automation Framework's Environment dialog, the default focus should be on the table in the Contexts tab, and the first row in the table should be selected when the dialog is opened for the first time in a new session.
In the case of the Marketplace, the default focus should be on the Check for Updates button if it is present, or on the Filter text box if the Check for Updates button is not present.
Describe alternatives you've considered n/a
Additional context Automation Framework - Environment dialog, brand new session, tab row focused instead of Default Context