options editor -- selection move on name hit when inserting to the search pattern

This commit is contained in:
Kirill Kalishev
2011-07-11 14:18:28 +04:00
parent ba84da5f1d
commit bde19ff00c
@@ -811,7 +811,7 @@ public class OptionsEditor extends JPanel implements DataProvider, Place.Navigat
shouldMoveSelection = false;
}
if (shouldMoveSelection && (myFiltered == null || myFiltered.contains(current))) {
if (shouldMoveSelection && type != DocumentEvent.EventType.INSERT && (myFiltered == null || myFiltered.contains(current))) {
shouldMoveSelection = false;
}