3
I don’t want to disable text selection, nor do I want to disable right-click. I JUST want to disable the selection of text With the right mouse click (but the menu should still appear when right click and, select text via double click or click + drag should also continue working)
I don’t know how it works in Windows, but on Mac, if you click with the right mouse button on any word (even if it is inside another element, like a button), besides Open menu, the word is selected.
– user23536
@user23536 understood, unfortunately I do not have a MAC to test the situation, but maybe I post an example, the situation is only on the same Mac?
– Guilherme Nascimento
@Guilhermenascimento I did a Google search and it seems to me that it is only on the same MAC.
– user23536
I believe that mouse events are compatible and we can block by the event itself
contextmenu
, usingtextrange
or something like that, the night I try to add an answer.– Guilherme Nascimento
@Guilhermenascimento ok, thank you for your attention. :)
– user23536
Take a look at this answer: http://stackoverflow.com/questions/2326004/prevent-selection-in-html
– Pedro Vinícius