Frederick Posted September 25, 2020 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
Sherzod Posted September 25, 2020 Posted September 25, 2020 Hello, Try top.ajaxRequest instead of ajaxRequest Quote
Frederick Posted September 25, 2020 Author 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
Sherzod Posted September 25, 2020 Posted September 25, 2020 What are you showing in the UniURLFrame? PDF? Quote
Frederick Posted October 1, 2020 Author Posted October 1, 2020 Sherzod, Do you have a solution for this? Quote
Sherzod Posted October 1, 2020 Posted October 1, 2020 3 hours ago, Frederick said: Do you have a solution for this? Hello, Sorry, not yet. Quote
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.