TF-1155 Call the search action when pressing enter on the keyboard
Signed-off-by: dab246 <tdvu@linagora.com> (cherry picked from commit c8eb9c484f3b421a2555a4541e05ef81b15c41fe)
This commit is contained in:
@@ -266,9 +266,13 @@ class AdvancedFilterController extends BaseController {
|
||||
hasAttachment.value = searchEmailFilter.hasAttachment;
|
||||
if (searchEmailFilter.from.isEmpty) {
|
||||
listFromEmailAddress.clear();
|
||||
} else {
|
||||
fromAddressExpandMode.value = ExpandMode.COLLAPSE;
|
||||
}
|
||||
if (searchEmailFilter.to.isEmpty) {
|
||||
listToEmailAddress.clear();
|
||||
} else {
|
||||
toAddressExpandMode.value = ExpandMode.COLLAPSE;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -476,6 +480,11 @@ class AdvancedFilterController extends BaseController {
|
||||
listFromEmailAddress = List.from(listEmailAddress);
|
||||
}
|
||||
|
||||
void onSearchAction(BuildContext context) {
|
||||
FocusScope.of(context).unfocus();
|
||||
applyAdvancedSearchFilter(context);
|
||||
}
|
||||
|
||||
@override
|
||||
void onClose() {
|
||||
_removeFocusListener();
|
||||
|
||||
Reference in New Issue
Block a user