diff --git a/lib/OpenLayers/Control/Navigation.js b/lib/OpenLayers/Control/Navigation.js index ae61145291..946f1f96f2 100644 --- a/lib/OpenLayers/Control/Navigation.js +++ b/lib/OpenLayers/Control/Navigation.js @@ -94,7 +94,7 @@ OpenLayers.Control.Navigation = OpenLayers.Class(OpenLayers.Control, { * You should probably set handleRightClicks to true if you use this * with MOD_CTRL, to disable the context menu for machines which use * CTRL-Click as a right click. - * Default: */ zoomBoxKeyMask: OpenLayers.Handler.MOD_SHIFT, diff --git a/lib/OpenLayers/Control/ZoomBox.js b/lib/OpenLayers/Control/ZoomBox.js index 9cdee9180e..3846d2fdff 100644 --- a/lib/OpenLayers/Control/ZoomBox.js +++ b/lib/OpenLayers/Control/ZoomBox.js @@ -31,7 +31,16 @@ OpenLayers.Control.ZoomBox = OpenLayers.Class(OpenLayers.Control, { out: false, /** - * Property: alwaysZoom + * APIProperty: keyMask + * {Integer} Zoom only occurs if the keyMask matches the combination of + * keys down. Use bitwise operators and one or more of the + * constants to construct a keyMask. Leave null if + * not used mask. Default is null. + */ + keyMask: null, + + /** + * APIProperty: alwaysZoom * {Boolean} Always zoom in/out, when box drawed */ alwaysZoom: false,