Jump to content

How To Trap An ESCAPE Key Pressed Within The TUniURLFrame?


Frederick

Recommended Posts

How do I check if the ESCAPE key had been pressed within the TUniURLFrame and handle it?

The following code that works in TUniPDFFrame does not work here.

TUniUrlFrame1.JSInterface.JSCode(#1'.iframe.contentDocument.addEventListener("keydown", function(e){ajaxRequest('+ Self.WebForm.JSForm.JSName +', "keydown", ["key="+e.keyCode])});')

--
Frederick
(UniGUI Complete - Professional Edition 1.90.0.1534)
 

 

Link to comment
Share on other sites

7 minutes ago, Sherzod said:

Hello,

Try

top.ajaxRequest

instead of ajaxRequest

I changed my code to below but there is no effect.

TUniURLFrame1.JSInterface.JSCode(#1'.iframe.contentDocument.addEventListener("keydown", function(e){top.ajaxRequest('+ Self.WebForm.JSForm.JSName +', "keydown", ["key="+e.keyCode])});')

Link to comment
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
×
×
  • Create New...