mirror of
https://github.com/linagora/tmail-flutter.git
synced 2026-12-06 16:04:20 +00:00
Hide keyboard when open choose attachment dialog on mobile
This commit is contained in:
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}) {
|
||||
|
||||
Reference in new issue
Block a user