You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Flutter Quill Editor Custom Embed: Select Dropdown on Backspace Key
Description
I am working on a Flutter project where I use the Quill editor and have created a custom embedded dropdown using the DropdownEmbed class. My goal is to detect when the cursor reaches this embedded dropdown and handle the backspace key in such a way that instead of deleting the dropdown immediately, it gets selected or highlighted first.
Expected Behavior
When the user presses the backspace key and the cursor reaches the position of the embedded dropdown, the dropdown should be selected or highlighted, giving the user a visual cue before it is deleted.
Actual Behavior
Currently, when the backspace key is pressed and the cursor reaches the embedded dropdown, the dropdown is deleted immediately without selection or highlight.
Code Example
Here is my DropdownEmbed class used for embedding a dropdown within the Quill editor:
How can I modify the behavior so that when the backspace key is pressed, and the cursor reaches the embedded dropdown, the dropdown gets selected or highlighted instead of being immediately deleted?
The text was updated successfully, but these errors were encountered:
Is there an existing issue for this?
The question
Flutter Quill Editor Custom Embed: Select Dropdown on Backspace Key
Description
I am working on a Flutter project where I use the Quill editor and have created a custom embedded dropdown using the
DropdownEmbed
class. My goal is to detect when the cursor reaches this embedded dropdown and handle the backspace key in such a way that instead of deleting the dropdown immediately, it gets selected or highlighted first.Expected Behavior
Actual Behavior
Code Example
Here is my
DropdownEmbed
class used for embedding a dropdown within the Quill editor:Code Example
Here is my
Quill Editor Code
Question
The text was updated successfully, but these errors were encountered: