Cannot close find window with keyboard esc in IntelliJ IDEA 2019.3


I just recently upgraded to IntelliJ IDEA 2019.3 from 2019.2.  Most things are find and I like the new features.  However, it seems I can no longer use the esc key to close windows like the find window (opened with ctrl-shift-F)

Before this update, I could easily close it with a simple esc keypress.  I have sorta worked around this by adding a "ctrl-g" keystroke to "editor actions -> escape" like this:

So I can now close the window with a "ctrl-g" keypress, but not escape.  How can I get this escape key to work again like it did before?

I'm wondering if this has something to do with the new esc key functionality mentioned in this blog post


Comment actions Permalink

update - after messing with this for a while, I discovered that that somehow a new keymapping appeared in Settings->Keymap

"Other->Reload from Disk"  is bound to a double key stroke "esc then u". This mapping was not there before I upgraded to 2019.3.  After removing it, the ESC key mapping now is recognized like it was before.  The find window - and the other popups like it close correctly now.

I did select to migrate settings from my prior IntelliJ IDEA install.  Does this process add a new key mapping for "Other->Reload from Disk" ?



Comment actions Permalink

Could be related to your custom keymap. Which keymap it was inherited from?

As far as I can see, the default Emacs keymap in IntelliJ IDEA has it mapped to just Escape:

Comment actions Permalink

Right, Serge.  Your screenshot is basically what mine looked like after upgrading to 2019.3.  However, the focus editor action would not get invoked with the escape key like your screenshot indicates it should.  When the esc was pressed on the find window, I noticed that at the bottom of the IntelliJ window, it says something like "prefix key pressed ...".   It was expecting me to type another key to complete the sequence.  I then did some messing around in the dialog here to unmap and then remap the esc key to the "focus editor" action when I discovered the "esc then U" key sequence mapped to a different action.  Only after removing this, did IntelliJ realize there was no need to wait for a second keypress when I wanted to dismiss a window like find.

And yes, I did create a custom keymap based on the Emacs keymap many years ago, but I'm pretty sure I never changed the setting for the "reload from disk" action to use the esc key - especially to a 2 keystroke sequence.

Comment actions Permalink

The same problem in IntelliJ IDEA 2021.2 EAP (Community Edition). When "close" setting is `ctrl + f4`, I can close by `ctrl + f4`. When it is `escape`, I can't close by `escape`.

Build #IC-212.3724.25, built on June 4, 2021

Runtime version: 11.0.11+9-b1481.1 amd64

VM: OpenJDK 64-Bit Server VM by JetBrains s.r.o.

Linux 5.8.0-55-generic

GC: ParNew, ConcurrentMarkSweep

Memory: 1166M

Cores: 4

Registry: scala.erase.compiler.process.jdk.once=false

Non-Bundled Plugins: org.jetbrains.plugins.hocon (2021.1.0), org.intellij.scala (2021.2.261)

Kotlin: 212-1.4.32-release-IJ3724.25

Current Desktop: ubuntu:GNOME

Comment actions Permalink

Hello Misha,

Probably it's Should be fixed in. the next EAP.


Please sign in to leave a comment.