From 49658d1a92706d9ee791d4ec2fa3a0238d9c2e1d Mon Sep 17 00:00:00 2001 From: Konstantin Kolosovsky Date: Sun, 21 Jan 2018 20:09:33 +0300 Subject: [PATCH] Do not process key events by speed search if it is disabled Consider "ActionGroupPopup" with disabled speed search and enabled mnemonics. Speed search pattern editor is not shown, but key events were still processed by speed search, thus preventing correct mnemonics processing. --- .../src/com/intellij/ui/speedSearch/SpeedSearch.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/platform/platform-api/src/com/intellij/ui/speedSearch/SpeedSearch.java b/platform/platform-api/src/com/intellij/ui/speedSearch/SpeedSearch.java index 063ff5a2ce1f..fbfadb4e34f2 100644 --- a/platform/platform-api/src/com/intellij/ui/speedSearch/SpeedSearch.java +++ b/platform/platform-api/src/com/intellij/ui/speedSearch/SpeedSearch.java @@ -64,7 +64,7 @@ public class SpeedSearch extends SpeedSearchSupply implements KeyListener { } public void processKeyEvent(KeyEvent e) { - if (e.isConsumed()) return; + if (e.isConsumed() || !myEnabled) return; String old = myString; if (e.getID() == KeyEvent.KEY_PRESSED) {