|
|
@ -1452,12 +1452,12 @@ class QuillRawEditorState extends EditorState |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
void _handleFocusChanged() { |
|
|
|
void _handleFocusChanged() { |
|
|
|
|
|
|
|
openOrCloseConnection(); |
|
|
|
if (dirty) { |
|
|
|
if (dirty) { |
|
|
|
SchedulerBinding.instance |
|
|
|
SchedulerBinding.instance |
|
|
|
.addPostFrameCallback((_) => _handleFocusChanged()); |
|
|
|
.addPostFrameCallback((_) => _handleFocusChanged()); |
|
|
|
return; |
|
|
|
return; |
|
|
|
} |
|
|
|
} |
|
|
|
openOrCloseConnection(); |
|
|
|
|
|
|
|
_cursorCont.startOrStopCursorTimerIfNeeded(_hasFocus, controller.selection); |
|
|
|
_cursorCont.startOrStopCursorTimerIfNeeded(_hasFocus, controller.selection); |
|
|
|
_updateOrDisposeSelectionOverlayIfNeeded(); |
|
|
|
_updateOrDisposeSelectionOverlayIfNeeded(); |
|
|
|
if (_hasFocus) { |
|
|
|
if (_hasFocus) { |
|
|
|