Escape key shortcuts, esp in Find pane, make active editor lose focus
See original GitHub issueI 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 😃
Issue Analytics
- State:
- Created 3 years ago
- Comments:13 (4 by maintainers)
Top Results From Across the Web
Escape key shortcuts, esp in Find pane, make active 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...
Read more >In Visual Studio code, if I'm in the search widget, how do I ...
I will have to add escape to a shortcut that gives the editor focus. I've found one that does this, named View: Focus...
Read more >Keyboard shortcuts in Windows - Microsoft Support
Copy, paste, and other general keyboard shortcuts ; F10. Activate the Menu bar in the active app. ; Alt + A. Set focus...
Read more >Sometimes Escape should not switch from the Terminal tool ...
Go to "Settings | Tools | Terminal" and click "Configure terminal keybindings". · Find "Plug-ins | Terminal | Switch Focus To Editor" action...
Read more >Keyboard shortcuts for Windows - Visual Studio Code
Keyboard Shortcuts. Basic editing ... Toggle Tab moves focus. Search and replace. Ctrl+F. Find. Ctrl+H. Replace. F3 / Shift+F3 ... Move active editor...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
FYI, for anyone using https://chrome.google.com/webstore/detail/vimium/dbepggeogbaibhgnhhndojpepiihcmeb?hl=en, you would need to disable Vimium on your code-server page. See:
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) andC-w
always close the editor tab, not the browser page.As it is I have no problem with keys now.