Key events disabled in Popup dijit

901
3
04-18-2017 02:27 PM
KenLyon
New Contributor

I am using the Message dijit in place of javascript alert() and confirm() to match the style of WAB. However, it is not possible to use key events to select the buttons, which is not ideal.

Looking at the base class (Popup) I see that there is a property called key which seems to correspond to a member of dojo/keys for this very purpose. Sadly, all the relevant code is commented out.

Has this functionality been deprecated, or can we expect to see it implemented in a future release?

0 Kudos
3 Replies
RobertScheitlin__GISP
MVP Emeritus

Ken,

   The likelihood is that the code was never completed or had some browser compatibility issue. You can try and un-comment the relevant code and test in your app deployment environment to see if it works for you. Other than that you can call support and log an enhancement request for this feature to be completed. Normally esri development staff does not monitor or respond to threads like this so you are unlikely to get a better answer.

0 Kudos
KenLyon
New Contributor

Hi Robert,

Thanks for the tip. I've opened a support ticket. I'll let you know what I learn.

0 Kudos
KenLyon
New Contributor

Redlands has logged the following enhancement request:

ENH-000105036: Allow the Message widget to be closed with the ESC key and have the dijit confirmed with the ENTER key.

0 Kudos