From b81a4e875b2213fc21478cf84827bafe0d6e515a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C3=89ric=20Lemoine?= Date: Mon, 16 Sep 2013 22:44:18 +0200 Subject: [PATCH] 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 + ) to work, but it's ok, the map is focused so it's the one with the highest priority. --- src/ol/interaction/keyboardzoominteraction.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/ol/interaction/keyboardzoominteraction.js b/src/ol/interaction/keyboardzoominteraction.js index 59efe8d761..ee701704af 100644 --- a/src/ol/interaction/keyboardzoominteraction.js +++ b/src/ol/interaction/keyboardzoominteraction.js @@ -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