question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

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

See original GitHub issue

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 😃

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:13 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
tuannvmcommented, May 1, 2022

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:

image
1reaction
anddamcommented, Jul 8, 2020

@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.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found