Remove noModifierKeys condition for keyboad zoom
Refs #917. With the key hanler now attached to the map target by default we can remove the noModifierKeys condition for the keyboard zoom interaction. This will prevent the back button shortcut (alt + <back arrow>) to work, but it's ok, the map is focused so it's the one with the highest priority.
This commit is contained in:
@@ -33,8 +33,7 @@ ol.interaction.KeyboardZoom = function(opt_options) {
|
||||
* @type {ol.interaction.ConditionType}
|
||||
*/
|
||||
this.condition_ = goog.isDef(options.condition) ? options.condition :
|
||||
goog.functions.and(ol.interaction.condition.noModifierKeys,
|
||||
ol.interaction.condition.targetNotEditable);
|
||||
ol.interaction.condition.targetNotEditable;
|
||||
|
||||
/**
|
||||
* @private
|
||||
|
||||
Reference in New Issue
Block a user