[Webkit-unassigned] [Bug 51897] Escape should clear search field

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Thu Jul 14 19:35:04 PDT 2011


https://bugs.webkit.org/show_bug.cgi?id=51897





--- Comment #8 from Kent Tamura <tkent at chromium.org>  2011-07-14 19:35:04 PST ---
(In reply to comment #7)
> [2] EventSender::keyDown() does not dispatch a keypress event for control characters, including 'escape'. For example, in chromium...

I checked the specification:

http://www.w3.org/TR/DOM-Level-3-Events/#event-type-keypress
> A user agent must dispatch this event when a key is pressed down, if and only if that key normally produces a character value. 

I think it's the reason we don't produce keypress for control characters.
So, using keydown event is very reasonable in this case.

-- 
Configure bugmail: https://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.



More information about the webkit-unassigned mailing list