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.
This commit is contained in:
Konstantin Kolosovsky
2018-01-30 01:13:45 +03:00
parent 022e4f8cec
commit 49658d1a92
@@ -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) {