Hide keyboard when open choose attachment dialog on mobile

(cherry picked from commit f6a7654e4f66e227eb745ea3453d011e43dc162e)
This commit is contained in:
dab246
2023-06-15 17:34:28 +07:00
committed by Dat Vu
parent cd42c1465a
commit 17f9ed8d17
@@ -1185,10 +1185,11 @@ class ComposerController extends BaseController {
}
void clearFocusEditor(BuildContext context) {
if (!kIsWeb) {
if (PlatformInfo.isMobile) {
htmlEditorApi?.unfocus();
KeyboardUtils.hideSystemKeyboardMobile();
}
FocusManager.instance.primaryFocus?.unfocus();
FocusScope.of(context).unfocus();
}
void closeComposerWeb({dynamic result}) {