From 6e769575a2f6a36f3adc818cc9655d3bc7a8698f Mon Sep 17 00:00:00 2001 From: Oligazar Date: Tue, 2 Apr 2024 11:55:18 +0300 Subject: [PATCH] keyboard jump fix --- lib/src/widgets/raw_editor/raw_editor_state.dart | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/src/widgets/raw_editor/raw_editor_state.dart b/lib/src/widgets/raw_editor/raw_editor_state.dart index 670cd8ee..f4a7d6f7 100644 --- a/lib/src/widgets/raw_editor/raw_editor_state.dart +++ b/lib/src/widgets/raw_editor/raw_editor_state.dart @@ -1452,12 +1452,12 @@ class QuillRawEditorState extends EditorState } void _handleFocusChanged() { + openOrCloseConnection(); if (dirty) { SchedulerBinding.instance .addPostFrameCallback((_) => _handleFocusChanged()); return; } - openOrCloseConnection(); _cursorCont.startOrStopCursorTimerIfNeeded(_hasFocus, controller.selection); _updateOrDisposeSelectionOverlayIfNeeded(); if (_hasFocus) {