Join GitHub today
GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.Sign up
[ISSUE#1881][MAS2.1.2][Keyboard Navigation- Welcome Tab screen] Focus gets trapped on first and last element of the page when user navigates through the page #2001
Fixes how the focus gets trapped between the last and the first element of the pane.
We added a new condition to the EventHandlers class which will manage the focus when the emulator is running in macOS. Also, we included two auxiliary methods to find the first and last elements of the active pane and be able to move the focus between them.
Additionally, we added two unit tests to cover the new keydown event.
In the following image, you can see how the focus goes from the last element of the pane to the first when navigating with Tab key and vice-versa when using Shift+Tab navigation:
@corinagum if we move lines 142 & 143 to the ones that you told us, the
And something similar would happen to the other if clause, since it uses lastDecendants to obtain the lastElement.
Let us know if you want us to proceed with this change.