[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Search methods added to the WebView control


Le 18/04/2025 à 11:58, Claus Dietrich a écrit :
Am 18.04.25 um 00:34 schrieb Benoît Minisini:
Two more things:
1. Using the Find()-method without arguments is supposed to erase all marked hits. This works with the exemption of the first hit, which remains marked in gray color. My current workaround is to reload the HTML page but this takes time and is clearly visible. It would be perfect if the Find() method (without arguments) erases also the first hit.
It's internal to the browser. I guess it selects the first text found, and I guess you may have different behaviours between QT WebView and WebkitGTK. Maybe running a few javascript will allow you to unselect all selected text?
I am no JS geek and have no clue, what I have to look for (CSS class, HTML Tag ..?). I tried several AI proposals without success so far. Can someone help?

By typing "unselect text in javascript" in a search engine, I get that first answer:

https://stackoverflow.com/questions/6562727/is-there-a-function-to-deselect-all-text-using-javascript

Regards,

--
Benoît Minisini.


Follow-Ups:
Re: Search methods added to the WebView controlClaus Dietrich <claus.dietrich@xxxxxxxxxx>
References:
Search methods added to the WebView controlBenoît Minisini <benoit.minisini@xxxxxxxxxxxxxxxx>
Re: Search methods added to the WebView controlClaus Dietrich <claus.dietrich@xxxxxxxxxx>
Re: Search methods added to the WebView controlClaus Dietrich <claus.dietrich@xxxxxxxxxx>
Re: Search methods added to the WebView controlBenoît Minisini <benoit.minisini@xxxxxxxxxxxxxxxx>
Re: Search methods added to the WebView controlClaus Dietrich <claus.dietrich@xxxxxxxxxx>
Re: Search methods added to the WebView controlClaus Dietrich <claus.dietrich@xxxxxxxxxx>
Re: Search methods added to the WebView controlBenoît Minisini <benoit.minisini@xxxxxxxxxxxxxxxx>
Re: Search methods added to the WebView controlClaus Dietrich <claus.dietrich@xxxxxxxxxx>