Escape key should hide/turn off widgets, and features in Chrome
See original GitHub issuemonaco-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:
- Created 5 years ago
- Comments:6 (3 by maintainers)
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.
@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:
Can you reproduce at a friend’s computer? What is the difference between our setups?