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);
Angemeldete Mitglieder können Beiträge verfassen, Updates folgen und mehr. Neu hier? Registriere ein kostenloses Konto.
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.