[ka-Map-users] New Window Manager

Zak James zak4ms at gmail.com
Mon Jun 5 16:53:08 EDT 2006


This is a workaround for controlling selection highlights:

function captureEvents(e){
e = e?e:event;
var target = e.target?e.target:e.srcElement;
if (target instanceof HTMLInputElement || target instanceof
HTMLTextAreaElement) {
    return true;
return false;
function reEnable(){ return true; }

document.onselectstart = captureEvents;
document.onselect = captureEvents;
document.ondblclick = captureEvents;
document.onmousedown = captureEvents;
document.onclick = reEnable;

You can adjust it to determine which events will have selection
disabled and which will re-enable it. As written it will allow text
elements to be edited.


On 6/5/06, Lorenzo Becchi <lorenzo at ominiverdi.com> wrote:
> Hi Wei Yang,
>  > Perhaps we could make the page unselectable except for the
> blackboard.
> I don't think this is possible. Anyway we can invent some tricks to
> avoid select in the window bar.
>   thanks
> Lorenzo
> _______________________________________________
> ka-Map-users mailing list
> ka-Map-users at lists.maptools.org
> http://lists.maptools.org/mailman/listinfo/ka-map-users

Zak James
Applications and Software Development
DM Solutions Group Inc.

More information about the ka-Map-users mailing list