stackblitz / core

Online IDE powered by Visual Studio Code ⚡️
https://stackblitz.com
MIT License
10.27k stars 899 forks source link

Using Quick Switcher (⌘P) does not focus the cursor inside the editor upon switching #2408

Open landendanyluk opened 2 years ago

landendanyluk commented 2 years ago

Describe the bug

Title sums it up. After switching to a file with ⌘P, I have to manually click the editor area to begin typing.

Link to the blitz that caused the error

https://stackblitz.com/edit/daisyui-react-vite?file=package.json,src%2FApp.jsx

Steps to reproduce

  1. Use the Quick Switcher (⌘P) to switch to another file
  2. You won't be able to type in the opened file until you click on the editor area

Expected behavior

In every other text editor, after switching to a file, the cursor is focused on the editor area and you are able to start typing.

Parity with Local

Screenshots

No response

Platform

Browser name  = Chrome
Full version  = 103.0.0.0
Major version = 103
navigator.appName = Netscape
navigator.userAgent = Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/103.0.0.0 Safari/537.36
performance.memory = {
  "totalJSHeapSize": 75922974,
  "usedJSHeapSize": 73086174,
  "jsHeapSizeLimit": 4294705152
}
Hash = bff91798029e1af88e01551d056a592b2882b9ac

Additional context

No response

HeyGarrison commented 9 months ago

👋 hey @landendanyluk !

Is this still a problem? In my testing I'm not able to reproduce.

We've shipped a lot of improvements to the platform these past 2 years so I'm hoping that this is one of them!