mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
IDEA-55783 Diff window does not allow for win-W to close the window
This commit is contained in:
+2
-2
@@ -58,7 +58,7 @@ class FrameDiffTool implements DiffTool {
|
||||
public void actionPerformed(final AnActionEvent e) {
|
||||
builder.getDialogWrapper().close(0);
|
||||
}
|
||||
}.registerCustomShortcutSet(new CustomShortcutSet(KeymapManager.getInstance().getActiveKeymap().getShortcuts("CloseEditor")),
|
||||
}.registerCustomShortcutSet(new CustomShortcutSet(KeymapManager.getInstance().getActiveKeymap().getShortcuts("CloseContent")),
|
||||
diffPanel.getComponent());
|
||||
showDiffDialog(builder, hints);
|
||||
} else {
|
||||
@@ -72,7 +72,7 @@ class FrameDiffTool implements DiffTool {
|
||||
public void actionPerformed(final AnActionEvent e) {
|
||||
frameWrapper.getFrame().dispose();
|
||||
}
|
||||
}.registerCustomShortcutSet(new CustomShortcutSet(KeymapManager.getInstance().getActiveKeymap().getShortcuts("CloseEditor")),
|
||||
}.registerCustomShortcutSet(new CustomShortcutSet(KeymapManager.getInstance().getActiveKeymap().getShortcuts("CloseContent")),
|
||||
diffPanel.getComponent());
|
||||
|
||||
frameWrapper.show();
|
||||
|
||||
Reference in New Issue
Block a user