For Brian

 From:  Michael Gibson
1996.13 In reply to 1996.12 
Hi Burr, side pane deselect is in this post:
http://moi3d.com/forum/index.php?webtag=MOI&msg=1552.10

It's actually not too much stuff - it's some additional script code that calls moi.geometryDatabase.deselectAll() when there is a click on the <body> tag of the side pane UI document.

If I remember right, it is this part added right before the end of the <head> of SidePane.htm:

code:
		<script>
			function OnBodyClick()
			{
				if ( window.event && window.event.srcElement )
				{
					var e = window.event.srcElement;
					
					if ( e.id == "ContextAreaContainer" || e.tagName == "BODY" )
						moi.geometryDatabase.deselectAll();
				}
			}
		</script>



Then change the <body> tag to say:
code:
	<body class="SidePaneBody" onclick="OnBodyClick();">



With that in place, then clicks on an empty area of the side pane will deselect objects.

I'm kind of hesitant to do that by default since building up a selection is a pretty important step for many commands, it could potentially be a problem to lose the selection if you clicked slightly away from a button by accident...

- Michael