But in Opera and Safari, in focusing the input field, the field also
receives the keypress as well.

On Jan 11, 4:23 pm, Vishal Verma <[email protected]> wrote:
> I have a keypress event handler in my web-page that when executed focuses on
> an input field on the page. It works in Chrome, but with a side effect. When
> I press a key, the focus moves to the input field, but the input field also
> displays the char corresponding to the key. You can observe this here:
>
> TechTeeter - Chromium Keypress
> Bug<http://techteeter.slowpoison.net/wp-uploads/2010/01/text-focus-on-key...>
>
> I already have a workaround for this, but I'm wondering if this is a bug.
>
> I'm not sure if the aforementioned behavior violates the DOM Event Flow
> specs, but I feel that the input field should not be receiving the keypress
> and hence this is a bug. If you open the page above in Firefox it works fine
> - i.e. no char in the input field.
>
> -vish
-- 
Chromium Discussion mailing list: [email protected] 
View archives, change email options, or unsubscribe: 
    http://groups.google.com/group/chromium-discuss

Reply via email to