문제

I need to use the ESC key to close a modal in my application that is built with the Chrome Embedded Framework but it is disabled by default.

Is there a way to activate it?

CEF is embedded in a Delphi application. The front end is being implemented with AngularJS and jQuery.

도움이 되었습니까?

해결책

If the modal dialog is of the alert() type, you cannot bind ESC key in JavaScript. On the other hand, if the modal dialog is opened by a jQuery plugin (like this one), please see this answer. You can also hijack window.alert. However, if you cannot modify JavaScript code, you are left with intercepting the modal dialog within Delphi (which I am not familiar with)

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top