- Sometimes Rstudio loses the 'focus' on the script pane/window.
- By 'focus' I mean ability to type text.
- I can regain focus by clicking with the mouse in script pane/window (but this is not optimal).
The problem occurs in different conditions, but I can reproduce one of them:
-
Start Rstudio
-
Create a new script.
-
Pop-out the script in a new window.
-
Type some code (e.g.
2+2
), select it, and pressctrl + shift + p
to open command pallete and click 'style selection'. -
Now focus is lost.
-
ctrl + 1
does not regain focus on script, only mouse-click works.