Disabling the context menu without disabling text selection

I am working on an iPad application using a handset. I would like to disable the context menu when choosing text, but continue to allow selection. So:

-webkit-touch-callout:none;
-webkit-user-select:none;

does not work, since it does not allow you to choose, and:

-webkit-touch-callout:none;
-webkit-user-select:text;

still showing the menu.

The ultimate goal is to hide this menu in order to show my own, because (correct me if I am wrong), the first one cannot be configured using javascript. If this is not possible, I think that in the end we will study the possibility of creating a telephone plug-in for this purpose (if someone did, is this possible?)

+5
source share

All Articles