Filter component has no focus if it is set as 'focusComponent' for window #PL-4884

This commit is contained in:
Maxim Gorbunkov 2015-09-21 14:10:18 +00:00
parent 68cf2c6669
commit 525b3e244e

View File

@ -370,7 +370,13 @@ public class FilterDelegateImpl implements FilterDelegate {
setFilterActionsEnabled();
initFilterSelectComponents();
}
requestFocusToParamEditComponent();
if (paramEditComponentToFocus != null)
requestFocusToParamEditComponent();
else if (filtersPopupDisplayed)
filtersPopupButton.requestFocus();
else if (filtersLookupDisplayed) {
filtersLookup.requestFocus();
}
updateWindowCaption();
});
}
@ -2031,6 +2037,8 @@ public class FilterDelegateImpl implements FilterDelegate {
fillConditionsLayout(ConditionsFocusType.FIRST);
requestFocusToParamEditComponent();
updateFilterModifiedIndicator();
} else {
requestFocusToParamEditComponent();
}
});
}