You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Keyboard invocation of main menu doesn't restore focus when menu closed #6197
RStudio Edition : Server
RStudio Version : 1.3.821
OS Version : any
R Version : any
Steps to reproduce the problem
In RStudio server, observe where keyboard focus is located (e.g. Console) then use Ctrl+Opt+F for Mac or Alt+Shift+F for Win/Linux to focus the File menu
Right/left arrow keys (optionally) to view other menus
Exit menu in a variety of ways, including:
Change your mind and hit Esc until nothing is highlighted in menubar
Select a command from the menus (for example, one that brings up a dialog box such as Help / About, then close that dialog box)
While menus are showing, use a keyboard shortcut to invoke a command
Describe the problem in detail
When done using the menu (or a dialog box invoked from the menus) focus doesn't return to where it was before bringing up the menu with keyboard shortcut
Describe the behavior you expected
Focus should go back to where it was before menu bar was activated
If the menu is used to trigger a command that brings up a dialog box, then after that dialog box is done focus should go back to where it was before the menu was brought up (unless the dialog box itself sets focus somewhere else)
If you use the Tab or Shift+Tab key while menu is displayed, it should NOT restore focus to the previous location but instead move through the page's tab order
changed the title [-]Focus should return to last active item when menu closed[/-][+]Keyboard use of main menu doesn't restore focus when menu closed[/+]on Sep 29, 2020
changed the title [-]Keyboard use of main menu doesn't restore focus when menu closed[/-][+]Keyboard invocation of main menu doesn't restore focus when menu closed[/+]on Sep 29, 2020
Activity
gtritchie commentedon Aug 18, 2020
Investigating this for possible inclusion in 1.4. Would be a big win for keyboard-only users (including screen reader users).
[-]Focus should return to last active item when menu closed[/-][+]Keyboard use of main menu doesn't restore focus when menu closed[/+][-]Keyboard use of main menu doesn't restore focus when menu closed[/-][+]Keyboard invocation of main menu doesn't restore focus when menu closed[/+]Restore keyboard focus after invoking main menu via shortcuts
kfeinauer commentedon Oct 16, 2020
Verified fixed on RSP 1.4.940-1