Let's deactivate zoom and pan with the keyboard and also the rotate when doing Alt + Shift + mouse drag.
For this, do the following:
<div id="map" class="map"></div>the attribute
tabIndexwith a value
0to make it focusable.
interactionsproperty of the
altShiftDragRotateoption. Try different actions with the left, right, up, and down arrows or with the plus and minus keys.
Here you just saw an example to deactivate some default behaviors.
By changing keyboard options to
false, we make the application unable ...