[ka-Map-users] kaKeymap bug fixes; IE6 right-click bug?
Paul Spencer
pspencer at dmsolutions.ca
Fri Jan 27 13:18:51 EST 2006
Jon,
Thanks. This was a work in progress for future support of context
menus in the map window on right click. I've added the event
variable and also fixed the event handler by adding e = e?e:event;
which makes sure e is defined in both IE and ffox/safari. I haven't
tested in IE so please let me know if it works.
Cheers
Paul
On 27-Jan-06, at 12:57 PM, Jon Fatula wrote:
> kaKeymap under IE6 looks great: thanks, Andrea!
>
> Under IE6, a right-click on the map while in navigation mode throws
> two
> errors,
> both of which are related to the handling of the oncontextmenu event:
>
> kamap.js line 1288 KAMAP_CONTEXT_MENU is undefined
> kamap.js line 1325 e.preventDefault is null or not an object
>
> I'm not sure what the intent is or was for the context menu, but if
> we want
> to
> retain it, KA_MAP_CONTEXT_MENU can be defined by adding:
> var KAMAP_CONTEXT_MENU = gnLastEventId ++;
> at or near line 44 in kaMap.js. If that declaration is added, IE6
> still
> throws the
> e.preventDefault error in the kaMap_oncontextmenu handler near line
> 1322:
>
> kaMap_oncontextmenu = function( e )
> {
>
> if (e.preventDefault) e.preventDefault();
> return false;
> }
>
> Commenting out the if statement prevents the error (and prevents IE
> from
> displaying
> its context menu), and doesn't change the behavior under FireFox.
>
> -jon
>
> -----Original Message-----
> From: ka-map-users-bounces at lists.maptools.org
> [mailto:ka-map-users-bounces at lists.maptools.org]On Behalf Of Andrea
> Cappugi
> Sent: Friday, January 27, 2006 3:49 AM
> To: ka-map-users at lists.maptools.org
> Subject: [ka-Map-users] kaKeymap bug fixes
>
>
> Hi Paul,
> finally I have fixed kaKeymap bug. I have tested with firefox 1.5
> ie 6 and
> Lorenzo with safari.
> All major bugs (kalegend and kakeymap are fixed). Everybody should
> test last
> cvs version and if kaMap will not present any new bug, maybe you
> should cut
> the new release! :-)
> Cheers
> Andrea
>
>
> _______________________________________________
> ka-Map-users mailing list
> ka-Map-users at lists.maptools.org
> http://lists.maptools.org/mailman/listinfo/ka-map-users
>
+-----------------------------------------------------------------+
|Paul Spencer pspencer at dmsolutions.ca |
+-----------------------------------------------------------------+
|Applications & Software Development |
|DM Solutions Group Inc http://www.dmsolutions.ca/|
+-----------------------------------------------------------------+
More information about the ka-Map-users
mailing list