Disclosure Statement: This site contains affiliate links, which means that I may receive a commission if you make a purchase using these links. As an eBay Partner, I earn from qualifying purchases.

Always block Foward and Back Navigation

Post Reply
User avatar
salvadordf
Posts: 4057
Joined: Thu Feb 02, 2017 12:24 pm
Location: Spain
Contact:

Re: Always block Foward and Back Navigation

Post by salvadordf »

You can capture the navigation keys with TChromium.OnPreKeyEvent and TChromium.OnKeyEvent
Remember to delete the context menu entries too with TChromium.OnBeforeContextMenu.

The TChromium.OnBeforeBrowse event can also be used if your app can keep track of the user navigation.

You can also use JavaScript to block some keys and execute it in TChromium.OnLoadStart

Read this before using the TChromium events :

https://magpcss.org/ceforum/apidocs3/pr ... ndler.html
https://magpcss.org/ceforum/apidocs3/pr ... ndler.html
https://magpcss.org/ceforum/apidocs3/pr ... bool,bool)
https://magpcss.org/ceforum/apidocs3/pr ... itionType)
Post Reply