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 should hide/turn off widgets, and features in Chrome

See original GitHub issue

monaco-editor version: 0.14.3 Browser: Google Chrome Version 68.0.3440.106 OS: macOS HighSierra 10.13.6

Steps or JS usage snippet reproducing the issue:

I would expect Esc key to work as a cancel option on general basis (exactly as it is the case with Command Pallete). Fo instance, when find/replace widget is open and Esc is pressed the widget should be hidden. The same for other widgets.

The same thing is valid for for example multicursor. When multicursor option is on, and Esc is pressed the multicursor option should be off.

Instead, pressing Esc results in lost focus, but the additional widgets/options are still visible and on. I though about just implementing a listener for Esc key event, but closing manually every possible widget/option seems like a wrong way to go.

Is this expected bahvior, and if so any recommendations how I could address my issue?

Thanks!

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:6 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
mkapiczycommented, Sep 14, 2018

I’ve finally found out that it’s a vimium plugin causing the issues. There is even related issue in their repo, though they are not really addressing the problem -> philc/vimium#499

Thanks for your help, and sorry for the problem. I’m closing the issue.

0reactions
alexdimacommented, Sep 13, 2018

@mkapiczy I cannot reproduce what you are describing. I have now tested on Chrome on mac and on Chrome on Windows

When I press Escape, the find widget closes. I try to have the focus both in the find widget and in the editor when I press Escape and always the find widget closes: 1049

Can you reproduce at a friend’s computer? What is the difference between our setups?

Read more comments on GitHub >

github_iconTop Results From Across the Web

Disable escape key navigation in Flutter Web
As a workaround, we can remove this shortcut from MaterialApp : class MyApp extends StatelessWidget { // This widget is the root of...
Read more >
Google changes how the Escape key is handled in ...
The general idea is that starting with Chrome 76, pressing the Escape key on your keyboard will not "activate" a page and prevent...
Read more >
Edit Chrome controls on Mac Touch Bar
On your Mac computer, open Chrome. At the top of the screen, click View and then Customize Touch Bar. On your laptop screen,...
Read more >
Windows keyboard shortcuts for accessibility
Additional accessibility keyboard shortcuts ; Windows logo key + Ctrl + S · Turn on Windows Speech Recognition ; Windows logo key +...
Read more >
Disabling Escape key
Anyone know how to disable the escape key so that a user is forced to exit ... in 95/98 & open a full...
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