- 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:
Create a new script.
Pop-out the script in a new window.
Type some code (e.g.
2+2), select it, and press
ctrl + shift + pto open command pallete and click 'style selection'.
Now focus is lost.
ctrl + 1does not regain focus on script, only mouse-click works.