简体   繁体   English

如何使用Highslide iframe弹出窗口和ESCape按钮?

[英]How to use Highslide Iframe popup and ESCape button?

I open a Highslide popup using an Iframe. 我使用iframe打开Highslide弹出窗口。 I need to close it with the ESCape key. 我需要用ESCape键将其关闭。 It works great when I do something out Iframe. 当我在Iframe中执行某些操作时,效果很好。 But when I click on something in the Iframe and then press the ESCape button, it does not work. 但是,当我单击iframe中的某个内容,然后按ESCape按钮时,它不起作用。 How can I fix this? 我怎样才能解决这个问题?

You can not close the popup with the ESC key when hs.enableKeyListener is set to false in your highslide.config.js file. 在highslide.config.js文件hs.enableKeyListener设置为false时, hs.enableKeyListener使用ESC键关闭弹出窗口。
You need to remove this line from your highslide.config.js file: 您需要从highslide.config.js文件中删除以下行:

hs.enableKeyListener = false;

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM