Hi,

For us, right mouse menu cancelling is critical. If the experts are
having a hard time doing it, how can us users of the api be expected to
do it ourselves?

Jeff Lansing


Jordi Ministral wrote:

> Should I make this into CVS ?
>  and
> should I remove rightMouse menu cancelling in IE5 ?
>
> This is a poll
>
>
>
> Nicolas MASSART wrote:
>
>> The problem comes from the keyboard event management. (keyboard.js)
>> Netscape 4.x on a PC or a MAC supports kayboard events. on linux
>> it's
>> not supported so there is no bug.
>> It's possible that I made a mistake in tracking the bug, but it
>> seems to
>> appear on line 35 while a "RETURN" action returns false.
>> if it returns true it works. It doesn't look to cause any problems
>> with other
>> functions, but it's not completely sure. If anybody should try it
>> with
>> its own development to test the thing it would be greet.
>> I hope it can help, however it's a way to look in for the bug
>> correction.
>> If anybody find that I mistake, don't hesitate to alert me...
>>
>> I can't send you the corrected file in attachement because of a mail
>> problem on my
>> computer, but here is the code of the modified method...
>>
>> Don't forget to make a copy of the original file ;)
>>
>> DynKeyEvent.EventMethod = function(e) {
>>  var dynobject=this.lyrobj;
>>  if(is.def) {
>>   if (is.ie) var e=dynobject.frame.event;
>>   else if (e.eventPhase!=3) return false;
>>          e.cancelBubble=true;
>>  }
>>  if(is.def) var realsrc =
>> Methods.getContainerLayerOf(is.ie?e.srcElement:e.target)||dynobject;
>>
>>  else if(is.ns4) var realsrc=e.target.lyrobj;
>>
>>  if (!realsrc) return true;//here is the corrected line. I returned
>> "true" to prevent the key event to be stopped.
>>
>>  var evt=DynKeyEvent._e
>>  evt.type=e.type
>>  evt.src=realsrc;
>>  evt.browserReturn=true;
>>  evt.bubble=true;
>>  evt.which=(is.ns4)?e.which:e.keyCode;
>>  var curKey = String.fromCharCode(evt.which).toLowerCase();
>>  if (((curKey>='a')&&(curKey<='z'))||((curKey>='0')&&(curKey<='9')))
>>
>> evt.charKey=curKey;
>>  else evt.charKey=null;
>>  evt.ctrlKey=(is.ns4)?(e.modifiers &
>> Event.CONTROL_MASK):(e.ctrlKey||e.ctrlLeft||e.keyCode==17);
>>  evt.shiftKey=(is.ns4)?(e.modifiers &
>> Event.SHIFT_MASK):(e.shiftKey||e.shiftLeft||e.keyCode==16);
>>  evt.orig=e;
>>  realsrc.invokeEvent(evt.type,evt);
>>  evt.bubbleEvent();
>>  return evt.browserReturn;
>> };
>>
>>
>>
>> Thanks,
>> nicolas
>


_______________________________________________
Dynapi-Help mailing list
[EMAIL PROTECTED]
http://lists.sourceforge.net/lists/listinfo/dynapi-help

Reply via email to