|
|
|
@ -1094,7 +1094,6 @@ class RawEditorState extends EditorState |
|
|
|
|
|
|
|
|
|
@override |
|
|
|
|
bool showToolbar() { |
|
|
|
|
if (_selectionOverlay == null || _selectionOverlay!.toolbar != null) { |
|
|
|
|
// Web is using native dom elements to enable clipboard functionality of the |
|
|
|
|
// toolbar: copy, paste, select, cut. It might also provide additional |
|
|
|
|
// functionality depending on the browser (such as translate). Due to this |
|
|
|
@ -1102,7 +1101,6 @@ class RawEditorState extends EditorState |
|
|
|
|
if (kIsWeb) { |
|
|
|
|
return false; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
if (_selectionOverlay == null || _selectionOverlay!.toolbar != null) { |
|
|
|
|
return false; |
|
|
|
|
} |
|
|
|
@ -1110,8 +1108,6 @@ class RawEditorState extends EditorState |
|
|
|
|
_selectionOverlay!.showToolbar(); |
|
|
|
|
return true; |
|
|
|
|
} |
|
|
|
|
return true; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
@override |
|
|
|
|
bool get wantKeepAlive => widget.focusNode.hasFocus; |
|
|
|
|