rstudio / rstudio

RStudio is an integrated development environment (IDE) for R
https://posit.co/products/open-source/rstudio/
Other
4.68k stars 1.09k forks source link

Shift+F6 key does not work for Server edition #7474

Closed jooyoungseo closed 4 years ago

jooyoungseo commented 4 years ago

System details

RStudio Edition : Server
RStudio Version : v1.4.647
OS Version      : Windows 10 with WSL2, Chrome v84.0.4147.105
R Version       : ANY

Steps to reproduce the problem

  1. After logged in RStudio Server, press F6 to go to the next pane.
  2. Press Shift+F6 and see if the focus returns to the previous pane.

Describe the problem in detail

This feature was originally proposed via #6882, and closed via #7408.

Two issues I have found are ..:

  1. Shift+F6 does not work for focusing panes backwords.
  2. As explained in #6882, it would be ideal to add CTRL modifier key in addition to F6 for Server edition because F6 is often taken by browsers for focusing address bar. In sum, we may want to keep F6/Shift+F6 for Desktop edition; Ctrl+F6/Ctrl+Shift+F6 for Server edition. This is how other apps (e.g., Slack) do for Desktop and Web versions.

Describe the behavior you expected

  1. Shift+F6 has to work for Server edition.
  2. If possible, please add Ctrl modifier key for Server edition.
melissa-barca commented 4 years ago

Hi @jooyoungseo I believe the issue with server mode is not that F6 doesn't work, but it currently requires the user to have focus within one of the panes to do anything. Once you navigate to a pane, F6 should work properly. I will update the feature so that if there is not focus in a pane, focus defaults to the top left pane when F6 is selected. Let me know if this sounds correct to you.

Regarding adding the Ctrl key, we currently use "Ctrl + F6" for activateFindInFiles and "Ctrl + Shift + F6" for layoutZoomTutorial. I'd like to hear @gtritchie's thoughts on if we should replace these. This also makes me wonder if there are more commands that overlap with browser defaults.

jooyoungseo commented 4 years ago

Thanks for your response, @melissa-barca.

I am not sure whether this is because I am using a screen reader, but pressing Shift+F6 two times puts my focus to the browser addressbar while F6 works really well.

In short, the forward (F6) navigation works; backword (Shift+F6) navigation does not work (please press Shift+F6 at least two times).

As for the key conflict against the existing RStudio keys, I think replacing them with a new key would cause unexpected confusion.

This is not ideal, but I would suggest that we stick with F6/Shift+F6 as is.

Fortunately, there is another addressbarFocus key which is Alt+D on Windows, but I have no idea about Mac/Linux's alternative keys.

Yes, we need @gtritchie's advice and insight.

gtritchie commented 4 years ago

I'm OOO today (barely). I always use Ctrl+L or Cmd+L to focus the address bar in browsers.

We do try to avoid conflicts with browser shortcuts, but have made several exceptions over time.

Will try it out later (on Windows, I don't think I tried the Shift+F6 work on Windows, only Mac).

gtritchie commented 4 years ago

The build you were trying, 1.4.647, didn't have the Shift+F6 change in it.

The 1.4.649 is the first build with it. I tried 1.4.660, and was able to use Shift+F6 to move backwards between RStudio panes, even with JAWS or NVDA running (or with no screen reader).

Resolving as "no repro".

R-Hannibal commented 4 years ago

Marking this issue verified due to the not reproducible resolution.