vcs: Close editor diff preview for "Local Changes" and "Shelf" on pressing "escape" (IDEA-215408)

GitOrigin-RevId: 9615806deaa617e88acc352a6c0bd4607e73b148
This commit is contained in:
Konstantin Kolosovsky
2020-02-26 17:03:35 +00:00
committed by intellij-monorepo-bot
parent 33b216f1ed
commit 5f2df49a3d
2 changed files with 4 additions and 0 deletions
@@ -481,6 +481,8 @@ public class ChangesViewManager implements ChangesViewEx,
}
};
editorPreview.setEscapeHandler(() -> {
editorPreview.closePreview();
ToolWindow toolWindow = getToolWindowFor(myProject, LOCAL_CHANGES);
if (toolWindow != null) toolWindow.activate(null);
});
@@ -752,6 +752,8 @@ public class ShelvedChangesViewManager implements Disposable {
}
};
editorPreview.setEscapeHandler(() -> {
editorPreview.closePreview();
ToolWindow toolWindow = getToolWindowFor(myProject, SHELF);
if (toolWindow != null) toolWindow.activate(null);
});