mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
vcs: Close editor diff preview for "Local Changes" and "Shelf" on pressing "escape" (IDEA-215408)
GitOrigin-RevId: 9615806deaa617e88acc352a6c0bd4607e73b148
This commit is contained in:
committed by
intellij-monorepo-bot
parent
33b216f1ed
commit
5f2df49a3d
@@ -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);
|
||||
});
|
||||
|
||||
+2
@@ -752,6 +752,8 @@ public class ShelvedChangesViewManager implements Disposable {
|
||||
}
|
||||
};
|
||||
editorPreview.setEscapeHandler(() -> {
|
||||
editorPreview.closePreview();
|
||||
|
||||
ToolWindow toolWindow = getToolWindowFor(myProject, SHELF);
|
||||
if (toolWindow != null) toolWindow.activate(null);
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user