Frederick Posted September 25, 2020 Share Posted September 25, 2020 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 More sharing options...
Sherzod Posted September 25, 2020 Share Posted September 25, 2020 Hello, Try top.ajaxRequest instead of ajaxRequest Link to comment Share on other sites More sharing options...
Frederick Posted September 25, 2020 Author Share Posted September 25, 2020 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 More sharing options...
Sherzod Posted September 25, 2020 Share Posted September 25, 2020 OK, I will check. Link to comment Share on other sites More sharing options...
Frederick Posted September 25, 2020 Author Share Posted September 25, 2020 Thanks Link to comment Share on other sites More sharing options...
Sherzod Posted September 25, 2020 Share Posted September 25, 2020 What are you showing in the UniURLFrame? PDF? Link to comment Share on other sites More sharing options...
Frederick Posted September 25, 2020 Author Share Posted September 25, 2020 PDF Link to comment Share on other sites More sharing options...
Frederick Posted October 1, 2020 Author Share Posted October 1, 2020 Sherzod, Do you have a solution for this? Link to comment Share on other sites More sharing options...
Sherzod Posted October 1, 2020 Share Posted October 1, 2020 3 hours ago, Frederick said: Do you have a solution for this? Hello, Sorry, not yet. Link to comment Share on other sites More sharing options...
Recommended Posts
Please sign in to comment
You will be able to leave a comment after signing in
Sign In Now