flutter-quill icon indicating copy to clipboard operation
flutter-quill copied to clipboard

Disable context menu after selection for desktop platform

Open kamilkarp opened this issue 1 year ago • 3 comments

Is there an existing issue for this?

The question

How could I change default behaviour of context menu showing after selection? On desktop platforms context menu is showing after user selects the text, selects all with double click etc. I think this is not normal behaviour on desktop and all of our users think that this is weird.

How can I make it that for desktop platform context menu for selection will show only when right clicking the selection?

kamilkarp avatar Feb 15 '24 11:02 kamilkarp

I too am trying to solve this issue as I have the exact same problems. Users just dont find it natural and I often receive complaints from users about this. Any assistance would be greatly appreciaited.

AnAlpaca avatar Feb 29 '24 10:02 AnAlpaca

contextMenuBuilder: (context, state) {
  return const SizedBox.shrink();
},

marcio-ota avatar Mar 19 '24 02:03 marcio-ota

Thanks @marcio-ota for the tip, that does solve the immediate issue.

Unfortunately, it also seems to disable context menus altogether, which means no copy/paste functionality.

The correct behaviour would be to display the context menu on a tap or right click of selected text. Has anyone figured out how to make that happen?

thanks again!

moconchobhair avatar Mar 29 '24 07:03 moconchobhair

Same issue here, context menu always shows after selection.

changguangyu avatar Jul 04 '24 05:07 changguangyu