I have an inline Google Map that, when clicked, can be navigated through using the keyboard arrow keys. This doesn't allow a person to use the arrow keys to scroll the actual page unless they click somewhere else on the page first. Is there a way to disable this navigation by arrow keys?
Disabling the Default UI To do so, set the map's disableDefaultUI property (within the MapOptions object) to true . This property disables any UI control buttons from the Maps JavaScript API.
set the option keyboardShortcuts
of the map to false
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With