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

Got a LiveCode personal license? Are you a beginner, hobbyist or educator that's new to LiveCode? This forum is the place to go for help getting started. Welcome!

Moderators: heatherlaine, Klaus, FourthWorld, kevinmiller

Post Reply
fredjoans
Posts: 4
Joined: Wed Sep 12, 2018 8:56 pm

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

Post by fredjoans » Sat Sep 15, 2018 10:32 pm

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

[-hh]
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 1785
Joined: Thu Feb 28, 2013 11:52 pm
Location: Göttingen, DE

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

Post by [-hh] » Mon Sep 17, 2018 8:00 pm

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.
shiftLock happens

Post Reply

Return to “Getting Started with LiveCode - Complete Beginners”