You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Escape key caused losing focus out of editor on Vivaldi #638
OS Version: Ubuntu 16.04 (Host) - Windows 8 Server (Local)
Browser: Vivaldi 1.24
Description
I usually hit Escape when editing (e.g: cancel intellisense suggestion). It's working normally on Chrome. However, on Vivaldi (which lets you change browser's color, reduce tab's size and hide address bar for less distraction), Escape key constantly cause losing focus out of the editor. I had to press Ctrl + 1 to refocus every time.
Steps to Reproduce
Start Vivaldi and open code-server.
Edit any file and press Escape, then try typing any characters.
@code-asher, I disagree. VSCode doesn't run within a browser, but rather it's own native wrapper window. Since this project wraps VSCode to make it accessible within any browser, it's on this project to prevent browser-specific default behaviors when needed.
VS Code contains both an Electron and web version. We use the web version, as does GitHub Codespaces (and Gitpod).
You can run VS Code's web version directly without our wrapper using code serve-web.
Edit to add: we do maintain some patches to make the web version work a bit more nicely for self-hosting use cases. However, we try not to patch bugs and prefer they go upstream, where they can benefit everyone using the web version of VS Code (Codespaces, Gitpod, etc).
If they refuse to fix/add something, we can talk about patching it here though.
@KaKi87 It looks like they are still open to the change if someone opens a new PR?
Bug fixes are one thing, but I would hesitate to maintain features that change this many lines. If we think there are unlikely to be conflicts moving forward though I think we could consider it.
Activity
[-]Escape key caused losing focus on the editor on V[/-][+]Escape key caused losing focus out of editor on Vivaldi[/+]nhooyr commentedon Jan 28, 2020
Not really sure what's going on. If anyone figures out, please let us know.
KaKi87 commentedon Jun 27, 2024
Hello,
I'm experiencing the same issue.
Thanks
wh0am1-dev commentedon Apr 14, 2025
Same here. For reference, I think code-server should call
preventDefault()orstopPropagation()on keyboard events for this to be fixed:I've tried adapting the user-script from the Vivaldi Forums link above, but it didn't work:
code-asher commentedon Apr 14, 2025
We just wrap VS Code so it sounds likely it will need to be fixed there: https://github.com/microsoft/vscode
wh0am1-dev commentedon Apr 15, 2025
@code-asher, I disagree. VSCode doesn't run within a browser, but rather it's own native wrapper window. Since this project wraps VSCode to make it accessible within any browser, it's on this project to prevent browser-specific default behaviors when needed.
code-asher commentedon Apr 15, 2025
VS Code contains both an Electron and web version. We use the web version, as does GitHub Codespaces (and Gitpod).
You can run VS Code's web version directly without our wrapper using
code serve-web.Edit to add: we do maintain some patches to make the web version work a bit more nicely for self-hosting use cases. However, we try not to patch bugs and prefer they go upstream, where they can benefit everyone using the web version of VS Code (Codespaces, Gitpod, etc).
If they refuse to fix/add something, we can talk about patching it here though.
wh0am1-dev commentedon Apr 15, 2025
All right, understood, will open an issue there. Thanks @code-asher !
KaKi87 commentedon Apr 15, 2025
Would you add microsoft/vscode#77363 then ?
code-asher commentedon Apr 16, 2025
@KaKi87 It looks like they are still open to the change if someone opens a new PR?
Bug fixes are one thing, but I would hesitate to maintain features that change this many lines. If we think there are unlikely to be conflicts moving forward though I think we could consider it.