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);
Signed in members can post, follow updates, and more. New here? Register a free account.
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.