We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b3beaea commit d27f201Copy full SHA for d27f201
lib/src/editor/editor.dart
@@ -396,7 +396,11 @@ class QuillEditorState extends State<QuillEditor>
396
}
397
398
void _requestKeyboard() {
399
- _requireEditorCurrentState.requestKeyboard();
+ if (widget.focusNode.hasFocus) {
400
+ _requireEditorCurrentState.requestKeyboard();
401
+ } else {
402
+ widget.focusNode.requestFocus();
403
+ }
404
405
406
lib/src/editor/raw_editor/raw_editor_state.dart
@@ -1199,8 +1199,6 @@ class QuillRawEditorState extends EditorState
1199
} else {
1200
_showCaretOnScreen();
1201
1202
- } else {
1203
- widget.config.focusNode.requestFocus();
1204
1205
1206
0 commit comments