Skip to content

Keyboard invocation of main menu doesn't restore focus when menu closed #6197

Closed

Description

@gtritchie

System details

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

Activity

  1. added this to the v1.4 milestone on Aug 18, 2020
  2. gtritchie commented on Aug 18, 2020

    @gtritchie
    MemberAuthor

    Investigating this for possible inclusion in 1.4. Would be a big win for keyboard-only users (including screen reader users).

  3. self-assigned this
    on Sep 24, 2020
  4. 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
  5. 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
  6. added a commit that references this issue on Sep 29, 2020
    dc8f27c
  7. self-assigned this
    on Oct 16, 2020
  8. kfeinauer commented on Oct 16, 2020

    @kfeinauer
    Contributor

    Verified fixed on RSP 1.4.940-1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions