[Webkit-unassigned] [Bug 51897] Escape should clear search field
bugzilla-daemon at webkit.org
bugzilla-daemon at webkit.org
Wed Jul 13 09:55:32 PDT 2011
https://bugs.webkit.org/show_bug.cgi?id=51897
--- Comment #2 from Evan Martin <evan at chromium.org> 2011-07-13 09:55:32 PST ---
(From update of attachment 100667)
View in context: https://bugs.webkit.org/attachment.cgi?id=100667&action=review
> Source/WebCore/html/SearchInputType.cpp:113
> + const String& key = event->keyIdentifier();
> + if (key == "U+001B") {
> + HTMLInputElement* input = element();
> + input->setValueForUser("");
> + input->onSearch();
> + event->setDefaultHandled();
> + } else
> + TextFieldInputType::handleKeydownEvent(event);
Does this mean it's impossible for content to handle 'esc' specially? I wonder if this maybe belongs on keypress rather than keydown.
--
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