Skip to content

Restore focus when using Server main menu with mouse #7907

Closed

Description

@gtritchie

System details

RStudio Edition : Server
RStudio Version : 1.0 and above
OS Version      : any
R Version       : any

Steps to reproduce the problem

  • In RStudio Server, note where the keyboard focus is located (say the Console).
  • Using the mouse, click on the main menu and do something such as Help / About
  • Dismiss that dialog
  • Look where keyboard focus is located now

Describe the problem in detail

  • Unless the action triggered from the menu did something to set focus, it will usually end up on the page body itself (you can see this if you start hitting the Tab key, or have a Live Expression in Chrome devtools of document.activeElement)
  • Modal Dialogs have a mechanism to save/restore focus, but when invoked from the Server main menu keyboard focus has already gone to the menus themselves, so that mechanism is not functional

Describe the behavior you expected

Activity

  1. self-assigned this
    on Sep 29, 2020
  2. stale commented on Feb 4, 2021

    @stale

    This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs, per https://github.com/rstudio/rstudio/wiki/Issue-Grooming. Thank you for your contributions.

  3. added
    stale
    on Feb 4, 2021
  4. removed
    stale
    on Feb 4, 2021
  5. gtritchie commented on Feb 4, 2021

    @gtritchie
    MemberAuthor

    Agree this is very low priority; keyboard-only users aren't impacted, and pointing-device users have a clear workaround and haven't complained about this.

    Closing as "won't fix".

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

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions