IDEA-299479 Toggling distraction-free mode loses cursor focus

GitOrigin-RevId: 43f8ca9b34337df7bd81744193a24911e23bef1f
This commit is contained in:
Dmitry Batrak
2022-08-12 07:00:21 +00:00
committed by intellij-monorepo-bot
parent b73debe331
commit 3227e830d2
@@ -19,7 +19,6 @@ import com.intellij.openapi.editor.ex.util.EditorUtil;
import com.intellij.openapi.project.DumbAwareAction;
import com.intellij.openapi.project.Project;
import com.intellij.openapi.util.registry.RegistryValue;
import com.intellij.openapi.wm.WindowManager;
import org.jetbrains.annotations.NotNull;
import javax.swing.*;
@@ -79,10 +78,6 @@ public class ToggleDistractionFreeModeAction extends DumbAwareAction implements
if (!enter) {
TogglePresentationModeAction.restoreToolWindows(project, false);
}
JFrame projectJFrame = WindowManager.getInstance().getFrame(project);
if (projectJFrame != null) {
projectJFrame.transferFocus();
}
}
private static void applyAndSave(@NotNull PropertiesComponent p,