Skip to content

Conversation

@shivansh00011
Copy link

@shivansh00011 shivansh00011 commented Jun 14, 2025

Fix: Show Paste Menu on Double Tap in QuillEditor (fixed the issue - #2594)

Problem
Currently, the QuillEditor does not show the context menu (paste/copy/cut/select) when a user double taps on a word, which is the default behavior in Flutter’s built-in TextField. This makes it less intuitive for users who expect the paste menu to appear on a double tap, especially when comparing with standard Flutter text input widgets.

Steps to Reproduce
Tap a word in the QuillEditor (field focuses).
Tap the word again (double tap) to try to summon the paste menu.
Actual: The paste menu does not appear.
Expected: The paste menu should appear, just like in Flutter’s TextField.

Solution
Improved gesture handling in the editor to show the context menu (paste menu) on double tap.
Modified the selection change logic to ensure the toolbar appears on selection changes that are not caused by drag or toolbar actions.
Now, tapping a word focuses the field, and double tapping shows the paste menu, matching the behavior of Flutter’s TextField.

@shivansh00011 shivansh00011 deleted the fix/paste-menu-double-tap branch June 16, 2025 03:00
@vishna
Copy link
Collaborator

vishna commented Jun 16, 2025

@shivansh00011 this looked like a good fix, any issues encountered here? 🤔

@shivansh00011
Copy link
Author

@vishna I don't know how the checks were failing that why I closed the pr . Was it ok means the fix was good?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants