Has anyone implemented a listener to close the infoWindow when the ESC key is pressed?If so are you able to share the code, so I don't reinvent the wheel?Thanks,Steve
<script type="text/javascript" src="shortcuts.js"></script>
   // Define some keyboard shortcuts    var kbdOptions = {        disable_in_input: true,        propagate: false    };    shortcut.add("Escape", function() {        N.myMap.infoWindow.hide();    }, kbdOptions);
Aangemelde leden kunnen berichten plaatsen, updates volgen en meer. Nieuw hier? Registreer een gratis account.
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.