mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
IDEA-299479 Toggling distraction-free mode loses cursor focus
GitOrigin-RevId: 43f8ca9b34337df7bd81744193a24911e23bef1f
This commit is contained in:
committed by
intellij-monorepo-bot
parent
b73debe331
commit
3227e830d2
-5
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user