From e83fd7e93ee40cdeb982f5160a6ae69b34f79d2e Mon Sep 17 00:00:00 2001 From: "Gregory.Shrago" Date: Wed, 24 Apr 2019 01:32:44 +0300 Subject: [PATCH] make non-focusable for SE and all other uses GitOrigin-RevId: aaf909d69786633499fe1b588cd27ce109795765 --- .../com/intellij/openapi/actionSystem/ex/CheckboxAction.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/platform/platform-api/src/com/intellij/openapi/actionSystem/ex/CheckboxAction.java b/platform/platform-api/src/com/intellij/openapi/actionSystem/ex/CheckboxAction.java index 0c8bbc61f5e8..cbd1c101dd97 100644 --- a/platform/platform-api/src/com/intellij/openapi/actionSystem/ex/CheckboxAction.java +++ b/platform/platform-api/src/com/intellij/openapi/actionSystem/ex/CheckboxAction.java @@ -4,6 +4,7 @@ package com.intellij.openapi.actionSystem.ex; import com.intellij.ide.DataManager; import com.intellij.openapi.actionSystem.*; +import com.intellij.ui.components.JBCheckBox; import com.intellij.util.ui.JBUI; import com.intellij.util.ui.UIUtil; import org.jetbrains.annotations.NotNull; @@ -30,7 +31,8 @@ public abstract class CheckboxAction extends ToggleAction implements CustomCompo @NotNull @Override public JComponent createCustomComponent(@NotNull Presentation presentation, @NotNull String place) { - JCheckBox checkBox = new JCheckBox(); + JBCheckBox checkBox = new JBCheckBox(); + checkBox.setFocusable(false); updateCustomComponent(checkBox, presentation); return createCheckboxComponent(checkBox, this, place); }