Page 1 of 1

How to use Find function (ctrl+f) in CEF Browser?

Posted: Sat Sep 15, 2018 10:32 pm
by fredjoans
Hello,

Is there some way to consistently use the CEFbrowser "Find on page" function? It seems like sometimes using key combo ctrl+f works and most of the time it doesn't. I'm using LiveCode 8.1.10.

-fj

Re: How to use Find function (ctrl+f) in CEF Browser?

Posted: Mon Sep 17, 2018 8:00 pm
by [-hh]
AFAIK this is not implemented from the LC side.
If it works then this is probably done by the page's JavaScript that captures all key events and has its own "find in page" implemented.

But if you have access to the webpage via "set htmltext" then you could
  • get the htmltext (as plain text),
  • do a find in LiveCode,
  • colorize the found strings in your HTML,
  • and then set the htmltext.
Hard work, the same as implementing it fully inJavaScript for your page.