mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
IDEA-161094 Option to disable search everywhere
This commit is contained in:
@@ -581,6 +581,12 @@ public class SearchEverywhereAction extends AnAction implements CustomComponentA
|
||||
|
||||
@Override
|
||||
public void actionPerformed(AnActionEvent e) {
|
||||
if (Registry.is("ide.suppress.double.click.handler") && e.getInputEvent() instanceof KeyEvent) {
|
||||
if (((KeyEvent)e.getInputEvent()).getKeyCode() == KeyEvent.VK_SHIFT) {
|
||||
return;
|
||||
}
|
||||
}
|
||||
|
||||
actionPerformed(e, null);
|
||||
}
|
||||
|
||||
|
||||
-5
@@ -15,7 +15,6 @@ import com.intellij.openapi.util.Clock;
|
||||
import com.intellij.openapi.util.Couple;
|
||||
import com.intellij.openapi.util.Disposer;
|
||||
import com.intellij.openapi.util.SystemInfo;
|
||||
import com.intellij.openapi.util.registry.Registry;
|
||||
import com.intellij.openapi.wm.IdeFocusManager;
|
||||
import com.intellij.util.containers.ContainerUtil;
|
||||
import gnu.trove.TIntIntHashMap;
|
||||
@@ -147,10 +146,6 @@ public class ModifierKeyDoubleClickHandler implements Disposable, ApplicationCom
|
||||
|
||||
@Override
|
||||
public boolean dispatch(@NotNull AWTEvent event) {
|
||||
if (Registry.is("ide.suppress.double.click.handler")) {
|
||||
return false;
|
||||
}
|
||||
|
||||
if (event instanceof KeyEvent) {
|
||||
final KeyEvent keyEvent = (KeyEvent)event;
|
||||
final int keyCode = keyEvent.getKeyCode();
|
||||
|
||||
Reference in New Issue
Block a user