From e50ab7f82f5d3fe700a030634d95b04a5ceccfd8 Mon Sep 17 00:00:00 2001 From: Alexander Zolotov Date: Mon, 27 Mar 2017 15:23:40 +0300 Subject: [PATCH] CheckBoxList: do not switch checkbox state on space if speedsearch is active --- .../platform-api/src/com/intellij/ui/CheckBoxList.java | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/platform/platform-api/src/com/intellij/ui/CheckBoxList.java b/platform/platform-api/src/com/intellij/ui/CheckBoxList.java index 4f7acf882f8b..03298b1968a0 100644 --- a/platform/platform-api/src/com/intellij/ui/CheckBoxList.java +++ b/platform/platform-api/src/com/intellij/ui/CheckBoxList.java @@ -1,5 +1,5 @@ /* - * Copyright 2000-2016 JetBrains s.r.o. + * Copyright 2000-2017 JetBrains s.r.o. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -16,6 +16,7 @@ package com.intellij.ui; import com.intellij.ui.components.JBList; +import com.intellij.ui.speedSearch.SpeedSearchSupply; import com.intellij.util.Function; import com.intellij.util.ObjectUtils; import com.intellij.util.containers.BidirectionalMap; @@ -67,6 +68,10 @@ public class CheckBoxList extends JBList { addKeyListener(new KeyAdapter() { @Override public void keyTyped(KeyEvent e) { + SpeedSearchSupply supply = SpeedSearchSupply.getSupply(CheckBoxList.this); + if (supply != null && supply.isPopupActive()) { + return; + } if (e.getKeyChar() == ' ') { Boolean value = null; for (int index : getSelectedIndices()) {