12009-06-01 Xiaomei Ji <xji@chromium.org>
2
3 Reviewed by NOBODY (OOPS!).
4
5 Not auto-testable since it involves sending a keyboard event to
6 the popup, which is not possible (eventSender sends the key
7 events through webview, we want to go through the webwidget).
8
9 This patch is one part of the fix for issue "keyboard selection in
10 Hebrew select element does not work in Windows". The other part of the
11 fix is in chromium's webkit/glue layer.
12 https://bugs.webkit.org/show_bug.cgi?id=25899
13
14 * manual-tests/keyboard_select_non_english.html: Added.
15 * platform/chromium/PopupMenuChromium.cpp:
16 (WebCore::isCharacterTypeEvent): Added. Check whether the event is a
17 character type event. "Char" in Windows or "KeyDown" in Mac is character
18 type event.
19 (WebCore::PopupListBox::typeAheadFind): Since m_lastCharTime is used to
20 indicate whether user types multiple characters continuely as a search
21 prefix or not, it should be only assigned when the event is character
22 type event.
23