mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
add '>' and ':' to allowed symbols in SpeedSearch (e.g.: filter method refs or lambdas in show implementation)
This commit is contained in:
@@ -17,11 +17,14 @@ package com.intellij.ui.speedSearch;
|
||||
|
||||
import com.intellij.psi.codeStyle.NameUtil;
|
||||
import com.intellij.util.text.Matcher;
|
||||
import gnu.trove.TIntHashSet;
|
||||
import org.jetbrains.annotations.Nullable;
|
||||
|
||||
import java.awt.event.KeyEvent;
|
||||
|
||||
public class SpeedSearch {
|
||||
private final static TIntHashSet ALLOWED_SPECIAL_SYMBOLS = new TIntHashSet(new int [] {' ', '*', '_', '-', '"', '\'', '/', '.', '$', '>', ':'});
|
||||
|
||||
private String myString = "";
|
||||
private boolean myEnabled;
|
||||
private Matcher myMatcher;
|
||||
@@ -58,7 +61,7 @@ public class SpeedSearch {
|
||||
}
|
||||
else {
|
||||
final char ch = e.getKeyChar();
|
||||
if (Character.isLetterOrDigit(ch) || ch == ' ' || ch == '*' || ch == '_' || ch == '-' || ch == '"' || ch == '\'' || ch == '/' || ch == '.' || ch == '$') {
|
||||
if (Character.isLetterOrDigit(ch) || ALLOWED_SPECIAL_SYMBOLS.contains(ch)) {
|
||||
type(Character.toString(ch));
|
||||
e.consume();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user