Re: Always block Foward and Back Navigation
Posted: Fri Mar 01, 2019 6:59 pm
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)
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)