IDEA-185008 Show usages is closed on escape in usages settings dialog

This commit is contained in:
Denis Fokin
2018-01-25 20:26:06 +03:00
parent d6e638e618
commit 8818e720db
@@ -135,7 +135,9 @@ public class Windows {
if (Arrays.stream(findShortcuts("EditorEscape"))
.anyMatch(shortcut -> shortcut.equals(new KeyboardShortcut(KeyStroke.getKeyStrokeForEvent((KeyEvent)event), null))))
{
deactivationShortcutHandler.accept(id);
if(isInActiveToolWindow(event.getSource())) {
deactivationShortcutHandler.accept(id);
}
}
}
}