mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
IDEA-297124 diff: prefer code navigation inside active diff editor
GitOrigin-RevId: d366a295b5ccd07d2df8f01b9ccba7c1b669d4b3
This commit is contained in:
committed by
intellij-monorepo-bot
parent
3942a1627a
commit
4eb336aaa9
@@ -24,6 +24,7 @@ import com.intellij.openapi.actionSystem.CommonDataKeys;
|
||||
import com.intellij.openapi.editor.EditorFactory;
|
||||
import com.intellij.openapi.editor.ex.EditorEx;
|
||||
import com.intellij.openapi.fileEditor.FileEditorManager;
|
||||
import com.intellij.openapi.fileEditor.OpenFileDescriptor;
|
||||
import com.intellij.openapi.project.Project;
|
||||
import com.intellij.openapi.vfs.VirtualFile;
|
||||
import com.intellij.ui.components.panels.Wrapper;
|
||||
@@ -50,7 +51,10 @@ public class TextEditorHolder extends EditorHolder {
|
||||
}
|
||||
}
|
||||
|
||||
if (CommonDataKeys.EDITOR.is(dataId)) {
|
||||
if (OpenFileDescriptor.NAVIGATE_IN_EDITOR.is(dataId)) {
|
||||
return editor;
|
||||
}
|
||||
else if (CommonDataKeys.EDITOR.is(dataId)) {
|
||||
return editor;
|
||||
}
|
||||
else if (CommonDataKeys.VIRTUAL_FILE.is(dataId)) {
|
||||
|
||||
Reference in New Issue
Block a user