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) Quote 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 Quote 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])});') Quote Link to comment Share on other sites More sharing options...
Sherzod Posted September 25, 2020 Share Posted September 25, 2020 OK, I will check. Quote Link to comment Share on other sites More sharing options...
Frederick Posted September 25, 2020 Author Share Posted September 25, 2020 Thanks Quote 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? Quote Link to comment Share on other sites More sharing options...
Frederick Posted September 25, 2020 Author Share Posted September 25, 2020 PDF Quote 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? Quote 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. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.