you can add in zoombox.js -> doMouseUp(e)
below this if (!refmapClick) { maction = varform.maction.value; this part if (e.shiftKey) { alert("Shift"); return false; } else if (e.ctrlKey) { alert("CTRL"); return false; } or if you want to add it to specify it for a certain button add before if (maction == 'addToDb') { You need to specify this maction in mapserver.js for the tools. armin On 10/06/2008 02:38, Gabe wrote: > Hi All, > > I have the need to detect shift-clicks and control-clicks on the map. > > I have a plugin which allows a user to click on the map and enter info into > a dialog which is then put into a db along with a spatial object > representing where they clicked. This all works fine but now the client > wants to be able to select multiple objects to record against. > > I would like to be able to detect whether or not the user had control or > shift held down when they clicked. > > My <BUTTON>_start function gets called with an imgxy object but i cant find > anywhere the state of the keyboard. Any help would be appreciated > > Thanks > > Gabe > > > ------------------------------------------------------------------------- Check out the new SourceForge.net Marketplace. It's the best place to buy or sell services for just about anything Open Source. http://sourceforge.net/services/buy/index.php _______________________________________________ pmapper-users mailing list pmapper-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/pmapper-users