1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-09-10 03:53:21 +02:00

Bug 519249 - [LaunchBar] popup disposed when typing

Focus is lost and popup disposed after filter control is activated
Probably in Oxygen sometime changes as focus now totally lost 
(focus control is null)
after selection in our custom tree.
Just resetting focus for now, need more investigation later
why it was lost



Change-Id: I0ab671ba97d8ecfe5586688812a9ea728d8f9619
This commit is contained in:
Alena Laskavaia 2017-07-05 11:39:53 -04:00
parent bb7cbf8429
commit 12514becfb

View file

@ -206,6 +206,8 @@ public class FilterControl extends Composite {
listViewer.setHistorySupported(patternText == null || patternText.isEmpty());
listViewer.refresh(true);
updateListSelection(false);
// re-focus filterText in case it lost the focus
filterText.setFocus();
} finally {
redrawControl.setRedraw(true);
}