From 331474b7732cd77bdc6f2ced0b5da0c1e77f9430 Mon Sep 17 00:00:00 2001 From: Oligazar Date: Mon, 8 Apr 2024 16:01:45 +0300 Subject: [PATCH] keyboard jump fixed --- lib/src/widgets/raw_editor/raw_editor_state.dart | 3 ++- 1 file changed, 2 insertions(+), 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 f4a7d6f7..da636414 100644 --- a/lib/src/widgets/raw_editor/raw_editor_state.dart +++ b/lib/src/widgets/raw_editor/raw_editor_state.dart @@ -1452,12 +1452,13 @@ class QuillRawEditorState extends EditorState } void _handleFocusChanged() { - openOrCloseConnection(); if (dirty) { + requestKeyboard(); SchedulerBinding.instance .addPostFrameCallback((_) => _handleFocusChanged()); return; } + openOrCloseConnection(); _cursorCont.startOrStopCursorTimerIfNeeded(_hasFocus, controller.selection); _updateOrDisposeSelectionOverlayIfNeeded(); if (_hasFocus) {