[Bug] How can I not trigger the keyboard popup when long pressing to make a selection in edit mode?
Bug Description
How can I not trigger the keyboard popup when long pressing to make a selection in edit mode?
How to Reproduce
long pressing editor
Expected Behavior
Can control whether to evoke the keyboard
Operating System
mobile
AppFlowy Editor Version(s)
master
Screenshots
No response
Additional Context
No response
Is it possible to provide a control to invoke the keyboard? In some scenarios, you may not want to invoke the keyboard.
As of now, the keyboard service will be attached if the selection changes. If you need to control the keyboard behavior, then I have to add a new value to control it.
There's a flag called 'selectionExtraInfoDoNotAttachTextService'; you can set it to 'true' to disable the automatic attachment behavior.
editorState
.selectionExtraInfo[selectionExtraInfoDoNotAttachTextService] = true;
As of now, the keyboard service will be attached if the selection changes. If you need to control the keyboard behavior, then I have to add a new value to control it.
There's a flag called 'selectionExtraInfoDoNotAttachTextService'; you can set it to 'true' to disable the automatic attachment behavior.
editorState .selectionExtraInfo[selectionExtraInfoDoNotAttachTextService] = true;
@LucasXu0 After I set this up, the keyboard still pops up