Author |
|
iSofia Newbie
Joined: 24 May 2014 Location: Singapore
Online Status: Offline Posts: 35
|
Posted: 01 November 2014 at 1:11am | IP Logged
|
|
|
Is there any way to intercept the ESC key from a plugin? I see that it is bound to a "change" event in the main application.
When using the showConfirmPopup() function to prompt for unsaved changes, I am able to handle the "okay" and "cancel" buttons, but not the ESC key.
Any help is appreciated. Thank you.
|
Back to Top |
|
|
Igor AfterLogic Support
Joined: 24 June 2008 Location: United States
Online Status: Offline Posts: 6104
|
Posted: 06 November 2014 at 2:56am | IP Logged
|
|
|
Hello,
I have just checked this with the developers, and they confirmed that Esc key is already handled within showConfirmPopup() function, it should cancel popup as expected.
--
Regards,
Igor, AfterLogic Support
|
Back to Top |
|
|
iSofia Newbie
Joined: 24 May 2014 Location: Singapore
Online Status: Offline Posts: 35
|
Posted: 08 November 2014 at 7:31am | IP Logged
|
|
|
Igor wrote:
...Esc key is already handled within showConfirmPopup() function, it should cancel popup as expected. |
|
|
Hi Igor. Yes, it does. But while the OK and Cancel buttons return a response, does the ESC key return any? Currently it cancels the showConfirmPopup() message box, but without any notification.
|
Back to Top |
|
|
Igor AfterLogic Support
Joined: 24 June 2008 Location: United States
Online Status: Offline Posts: 6104
|
Posted: 11 November 2014 at 2:48am | IP Logged
|
|
|
I've checked this with the developers in charge of UI, and they confirm there's indeed a problem with that one - while hitting "Cancel" returns a response, pressing "Esc" doesn't, and they're going to fix that of course.
--
Regards,
Igor, AfterLogic Support
|
Back to Top |
|
|
iSofia Newbie
Joined: 24 May 2014 Location: Singapore
Online Status: Offline Posts: 35
|
Posted: 11 November 2014 at 9:22am | IP Logged
|
|
|
Igor wrote:
I've checked this with the developers in charge of UI, and they confirm there's indeed a problem with that one - while hitting "Cancel" returns a response, pressing "Esc" doesn't, and they're going to fix that of course. |
|
|
Look forward to it; although I hope that there would not be any major changes to the code structure.
Thank you.
|
Back to Top |
|
|