From d9adcf5a4e02a50113fc378319028610ce35c781 Mon Sep 17 00:00:00 2001 From: crschmidt Date: Wed, 5 Nov 2008 21:53:34 +0000 Subject: [PATCH] Support changing the modification key used to draw the zoomBox, from Jachym with minor modifications. (Closes #1769) git-svn-id: http://svn.openlayers.org/trunk/openlayers@8285 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf --- lib/OpenLayers/Control/Navigation.js | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/lib/OpenLayers/Control/Navigation.js b/lib/OpenLayers/Control/Navigation.js index 09ccbbefde..82b014f7bc 100644 --- a/lib/OpenLayers/Control/Navigation.js +++ b/lib/OpenLayers/Control/Navigation.js @@ -53,6 +53,17 @@ OpenLayers.Control.Navigation = OpenLayers.Class(OpenLayers.Control, { * {Boolean} Whether or not to handle right clicks. Default is false. */ handleRightClicks: false, + + /** + * APIProperty: zoomBoxKeyMask + * {Integer} key code of the key, which has to be + * pressed, while drawing the zoom box with the mouse on the screen. + * 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: