I don't want to break keyboard navigation only because of IE problem.

On Tue, 12 Feb 2008 03:45:22 +0300, tancurrom <[EMAIL PROTECTED]> wrote:

>
> I think its just because of the way JavaScript handles the click
> event. Use the 'mousedown' event instead of the 'click' event and you
> will get your results
>
> On Feb 11, 2:42 pm, "artemy tregoubenko" <[EMAIL PROTECTED]>
> wrote:
>> Hello,
>>
>> Event.isLeftClick() is told to differ left clicks from right and middle
>> clicks. However when I run
>> document.observe('click', function(event){ alert(event.isLeftClick()); })
>> in IE and then left-click page, I see 'false' in alert. This starts
>> working if you listen to 'mousedown' or 'mouseup' events, but I don't like
>> this way out.
>>
>> I don't like it because 'click' event may be triggered by keyboard too,
>> and it's not good to forbid people to use keyboard at your site. I had an
>> idea to listen for both 'mousedown' and 'click' events, but didn't manage
>> to differ keyboard and mouse clicks in handler to avoid doubleposts.
>>
>> Is it possible to fix isLeftClick? If not, is there some nice workaround
>> for this situation?
>>
>> --
>> arty (http://arty.name)
> >
>



-- 
arty ( http://arty.name )

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Prototype: Core" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/prototype-core?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to