profile
viewpoint

Ask questionsEscape key shortcuts, esp in Find pane, make active editor lose focus

I think that https://github.com/cdr/code-server/issues/638 may be related.

I have all of the default Escape and Shift+Escape keyboard shortcuts mapped, esp. for editor.action.webvieweditor.hideFind closeFindWidget

but when I hit the Escape key to exit the Find pane in an editor, focus is lost from the entire editor. I expect the Find pane to disappear. I have to hit Ctrl+1 or use the mouse to regain focus on the editor, as mentioned in that other issue above.

I am using the latest version of code-server, running from a Docker container from Docker Desktop for Windows and using Chrome Version 80.0.3987.149 to view, but this has been present in many versions in the past. I just waited until now to mention :)

cdr/code-server

Answer questions anddam

@fiibbb Once you've entered the editor, click the "plus" icon present int he URL toolbar area. This will install a Chrome PWA.

I do not have such an icon.

For those who do not see it either, it is shown in this Google Chrome support page.

I am using docker image ece4f1a1e6ae from 4 weeks ago, what info can I provide to figure why is this?

I can further elaborate on this myself: switching from plain http to https (using a self-signed certificate) while accessing the docker image from a different host did the trick.

I run the docker code-server image on host A, I publish 0.0.0.0:2000:8080 (for some reason I cannot bind the server to 443 like in the guide) then I access https://A:2000/ from host B. Escape key is working as expected (exiting multi-line cursor, for instance) and C-w always close the editor tab, not the browser page.

As it is I have no problem with keys now.

useful!

Related questions

Increase fs.inotify.max_user_watches in docker container hot 1
OCI runtime create failed: container_linux.go:345 hot 1
Building Code-server in freebsd error with npm and node path error hot 1
TypeError: i.__spreadArrays is not a function hot 1
Losing connection with error hot 1
ESLint crashes hot 1
convertToDto unexpected type hot 1
Enforce user permissions for user data and extension dirs on container startup hot 1
Error: no such file or directory, '/src/packages/server/build/web/favicon.ico' hot 1
Language Pack not work hot 1
Enforce user permissions for user data and extension dirs on container startup hot 1
Segmentation fault (alpine) hot 1
Error: no such file or directory, '/src/packages/server/build/web/favicon.ico' hot 1
Support docker run with --user $(id -u):$(id -g) cli arg (shared process error) hot 1
Unable to save extensions and other config on local host system hot 1
source:https://uonfu.com/
Github User Rank List