diff --git a/platform/platform-impl/src/com/intellij/openapi/keymap/impl/IdeKeyEventDispatcher.java b/platform/platform-impl/src/com/intellij/openapi/keymap/impl/IdeKeyEventDispatcher.java index ed9185a43230..1f8b4d6717f1 100644 --- a/platform/platform-impl/src/com/intellij/openapi/keymap/impl/IdeKeyEventDispatcher.java +++ b/platform/platform-impl/src/com/intellij/openapi/keymap/impl/IdeKeyEventDispatcher.java @@ -198,12 +198,9 @@ public final class IdeKeyEventDispatcher implements Disposable { Window focusedWindow = focusManager.getFocusedWindow(); boolean isModalContext = focusedWindow != null && isModalContext(focusedWindow); - if (ApplicationManager.getApplication() == null) return false; //EA-39114 - - final DataManager dataManager = DataManager.getInstance(); - if (dataManager == null) return false; - - DataContext dataContext = dataManager.getDataContext(); + Application application = ApplicationManager.getApplication(); + if (application == null) return false; // WTF? + DataContext dataContext = application.getComponent(DataManager.class).getDataContext(); myContext.setDataContext(dataContext); myContext.setFocusOwner(focusOwner);