IDEA-339551 Enable alphanumeric mnemonics for the theme quick switcher

GitOrigin-RevId: 9947c36a6d96ab3815899e433ee3b225867d3ff2
This commit is contained in:
Sergei Tachenov
2023-12-01 18:16:06 +00:00
committed by intellij-monorepo-bot
parent 944e6ccf17
commit 3c00b58ff1
@@ -15,6 +15,7 @@ import com.intellij.openapi.actionSystem.remoting.ActionRemoteBehaviorSpecificat
import com.intellij.openapi.application.ApplicationManager;
import com.intellij.openapi.project.DumbAwareAction;
import com.intellij.openapi.project.Project;
import com.intellij.openapi.ui.popup.JBPopupFactory;
import com.intellij.openapi.ui.popup.JBPopupListener;
import com.intellij.openapi.ui.popup.LightweightWindowEvent;
import com.intellij.openapi.ui.popup.ListPopup;
@@ -162,6 +163,11 @@ public final class QuickChangeLookAndFeel extends QuickSwitchSchemeAction implem
}
}
@Override
protected JBPopupFactory.ActionSelectionAid getAidMethod() {
return JBPopupFactory.ActionSelectionAid.ALPHA_NUMBERING;
}
@Override
protected boolean isEnabled() {
return UiThemeProviderListManager.Companion.getInstance().getLaFListSize() > 1 && !LafManager.getInstance().getAutodetect();