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:
Éric Lemoine
2013-09-16 22:44:18 +02:00
parent f863ee9e37
commit b81a4e875b

View File

@@ -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