Skip to content

Commit dba5299

Browse files
Sergei Tachenovintellij-monorepo-bot
authored andcommitted
Revert "[platform UI, editor] IJPL-208094 Only focus an editor if the project is active"
This reverts commit bb465eddc4c6986392cf8ef729f10def882a635a. The reason for revert is IJPL-212655: apparently there are cases when another window should be focused, but for some reason it doesn't happen after the fix. This needs to be investigated and fixed before applying this fix again. Or maybe another fix is needed. (cherry picked from commit 9c2ab9b23f35f83dcb945af5132dbe8474e25373) IJ-CR-180738 GitOrigin-RevId: 8d5a0e57b6a03bdf58b1c9fe4638c02ad9a3ff1d
1 parent 100ed5a commit dba5299

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

platform/platform-impl/src/com/intellij/openapi/fileEditor/impl/EditorComposite.kt

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1082,7 +1082,8 @@ internal fun focusEditorOnComposite(
10821082
}
10831083
else {
10841084
if (toFront) {
1085-
IdeFocusManager.getGlobalInstance().requestFocusInProject(preferredFocusedComponent, composite.project)
1085+
IdeFocusManager.getGlobalInstance().toFront(preferredFocusedComponent)
1086+
preferredFocusedComponent.requestFocus()
10861087
}
10871088
else {
10881089
preferredFocusedComponent.requestFocusInWindow()

0 commit comments

Comments
 (0)