Hide keyboard when open choose attachment dialog on mobile

This commit is contained in:
dab246 authored and Dat Vu committed 2023-06-15 17:53:15 +07:00
1 parent cdacfac273
commit f6a7654e4f
1 file changed
+3 -2
@@ -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}) {