Hide keyboard when open choose attachment dialog on mobile
(cherry picked from commit f6a7654e4f66e227eb745ea3453d011e43dc162e)
This commit is contained in:
@@ -1185,10 +1185,11 @@ class ComposerController extends BaseController {
|
|||||||
}
|
}
|
||||||
|
|
||||||
void clearFocusEditor(BuildContext context) {
|
void clearFocusEditor(BuildContext context) {
|
||||||
if (!kIsWeb) {
|
if (PlatformInfo.isMobile) {
|
||||||
htmlEditorApi?.unfocus();
|
htmlEditorApi?.unfocus();
|
||||||
|
KeyboardUtils.hideSystemKeyboardMobile();
|
||||||
}
|
}
|
||||||
FocusManager.instance.primaryFocus?.unfocus();
|
FocusScope.of(context).unfocus();
|
||||||
}
|
}
|
||||||
|
|
||||||
void closeComposerWeb({dynamic result}) {
|
void closeComposerWeb({dynamic result}) {
|
||||||
|
|||||||
Reference in New Issue
Block a user