JetBrains: Esc key doesn't work in the popup
Created by: vdavid
Context
In the "Find in Files" window, Esc key closes the window. We expect our popup to work the same
Problem
When the web view is focused, the Esc key does nothing. (When a Swing component is focused, it closes the popup.)
Solution
Recognize Esc key presses inside the web view and trigger closing the popup.