Bug 7725 - "search" input doesn't fire any event when clicking (x) button
Summary: "search" input doesn't fire any event when clicking (x) button
Status: RESOLVED INVALID
Alias: None
Product: WebKit
Classification: Unclassified
Component: Forms (show other bugs)
Version: 420+
Hardware: Mac OS X 10.4
: P2 Normal
Assignee: Nobody
URL: http://www.aaronsw.com/2002/searchxvalue
Keywords:
Depends on:
Blocks:
 
Reported: 2006-03-11 15:18 PST by Aaron Swartz
Modified: 2006-12-17 10:07 PST (History)
2 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Aaron Swartz 2006-03-11 15:18:57 PST
I want to use the search widget to do incremental search, like it does in most OS X apps. This requires updating every time the search widget changes. onKeyUp catches most things except clicking the (x) button, which only seems to fire events _before_ it clears the widget, not _after_, so it's pretty hard to detect.
Comment 1 mitz 2006-12-17 10:07:40 PST
The 'search' event is fired when the close (x) button is clicked (so setting the 'onsearch' attribute to a handler should catch it). The event is fired after the value is reset. I verified this in both shipping Safari and TOT WebKit.