HOTFIX Composer cursor blink (#3983)
This commit is contained in:
@@ -211,6 +211,7 @@ class ComposerController extends BaseController
|
|||||||
StreamSubscription<html.Event>? _subscriptionOnDragOver;
|
StreamSubscription<html.Event>? _subscriptionOnDragOver;
|
||||||
StreamSubscription<html.Event>? _subscriptionOnDragLeave;
|
StreamSubscription<html.Event>? _subscriptionOnDragLeave;
|
||||||
StreamSubscription<html.Event>? _subscriptionOnDrop;
|
StreamSubscription<html.Event>? _subscriptionOnDrop;
|
||||||
|
StreamSubscription<html.Event>? _subscriptionOnBlur;
|
||||||
StreamSubscription<String>? _composerCacheListener;
|
StreamSubscription<String>? _composerCacheListener;
|
||||||
|
|
||||||
RichTextMobileTabletController? richTextMobileTabletController;
|
RichTextMobileTabletController? richTextMobileTabletController;
|
||||||
@@ -325,6 +326,7 @@ class ComposerController extends BaseController
|
|||||||
_subscriptionOnDragOver?.cancel();
|
_subscriptionOnDragOver?.cancel();
|
||||||
_subscriptionOnDragLeave?.cancel();
|
_subscriptionOnDragLeave?.cancel();
|
||||||
_subscriptionOnDrop?.cancel();
|
_subscriptionOnDrop?.cancel();
|
||||||
|
_subscriptionOnBlur?.cancel();
|
||||||
subjectEmailInputFocusNode?.removeListener(_subjectEmailInputFocusListener);
|
subjectEmailInputFocusNode?.removeListener(_subjectEmailInputFocusListener);
|
||||||
_composerCacheListener?.cancel();
|
_composerCacheListener?.cancel();
|
||||||
_beforeReconnectManager.removeListener(onBeforeReconnect);
|
_beforeReconnectManager.removeListener(onBeforeReconnect);
|
||||||
@@ -465,6 +467,11 @@ class ComposerController extends BaseController
|
|||||||
mailboxDashBoardController.localFileDraggableAppState.value = DraggableAppState.inActive;
|
mailboxDashBoardController.localFileDraggableAppState.value = DraggableAppState.inActive;
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
|
// https://github.com/flutter/flutter/issues/155265#issuecomment-2417101524
|
||||||
|
_subscriptionOnBlur = html.window.onBlur.listen((event) {
|
||||||
|
html.document.activeElement?.blur();
|
||||||
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
Future<void> _saveComposerCacheOnWebAction() async {
|
Future<void> _saveComposerCacheOnWebAction() async {
|
||||||
|
|||||||
@@ -63,10 +63,12 @@ class RichTextWebController extends GetxController {
|
|||||||
_updateBackgroundTextColor(settings);
|
_updateBackgroundTextColor(settings);
|
||||||
_updateOrderList(settings);
|
_updateOrderList(settings);
|
||||||
_updateParagraph(settings);
|
_updateParagraph(settings);
|
||||||
|
editorController.setFocus();
|
||||||
}
|
}
|
||||||
|
|
||||||
void onEditorTextSizeChanged(int? size) {
|
void onEditorTextSizeChanged(int? size) {
|
||||||
_updateFontSize(size);
|
_updateFontSize(size);
|
||||||
|
editorController.setFocus();
|
||||||
}
|
}
|
||||||
|
|
||||||
void _updateTextStyle(EditorSettings settings) {
|
void _updateTextStyle(EditorSettings settings) {
|
||||||
|
|||||||
Reference in New Issue
Block a user