Jawahar05
Jawahar05

Reputation: 354

How to hide cut | copy | Paste menu on double tap or long press in input box on chromium

I had an integrated Chromium application where I needed to hide the menu that appeared on double-tap or long press on a POS device or touch laptop, as shown in the image below.

I tried the code below, which works only on div elements. However, we need it to be disabled for text boxes as well.

 {
  -webkit-user-select: none; /* Safari */
  -ms-user-select: none; /* IE 10 and IE 11 */
  user-select: none; /* Standard syntax */
 }

Screen shot showing copy menu on long press / double tap

Upvotes: 0

Views: 62

Answers (0)

Related Questions