Recent

Author Topic: jWebView LongClick and text selection  (Read 635 times)

Manlio

  • Full Member
  • ***
  • Posts: 162
  • Pascal dev
jWebView LongClick and text selection
« on: December 06, 2020, 10:00:07 pm »
After a LongClick on a jWebView, one of two things happen:

1. If the LongClick was done over some text, the text is selected and a small menu is displayed, with options to copy the text and modify the selected area. The OnLongClick event is also triggered.

2. If the LongClick was done over an empty area, the OnLongClick event is triggered, but nothing else happens.

Now, inside the OnLongClick even handler, is there a way to know whether we are in case 1 or 2?

In other words, is it possible to know whether the current OnLongClick even has also triggered some text selection?

Or at the very least, is it possible to know whether any text is currently selected within a jWebView?

Thank you.
manlio mazzon gmail

 

TinyPortal © 2005-2018