Bug 29372
Summary: | [Qt] JavaScript onkeyup events don't fire in QtWebKit when IME is used | ||
---|---|---|---|
Product: | WebKit | Reporter: | Tor Arne Vestbø <vestbo> |
Component: | Platform | Assignee: | Nobody <webkit-unassigned> |
Status: | RESOLVED DUPLICATE | ||
Severity: | Normal | CC: | jturcotte, robert |
Priority: | P2 | Keywords: | Qt |
Version: | 528+ (Nightly build) | ||
Hardware: | Other | ||
OS: | OS X 10.5 |
Tor Arne Vestbø
This bug report originated from issue QTBUG-2542
<http://bugreports.qt.nokia.com/browse/QTBUG-2542>
--- Description ---
This can be reproduced with the demo-brower with the following page:
<html>
<body>
<input type=text onkeyup="alert('a');"></input>
</body>
</html>
Without IME typing will open the message box for each key-release. If an IME (ie Chinese) is used, then nothing pop up while typeing. Safari and Internet Explorer open the message box then as well.
Attachments | ||
---|---|---|
Add attachment proposed patch, testcase, etc. |
Robert Hogan
Is it connected with this somehow?
void EditorClientQt::handleKeyboardEvent(KeyboardEvent* event)
{
Frame* frame = m_page->d->page->focusController()->focusedOrMainFrame();
if (!frame || !frame->document()->focusedNode())
return;
const PlatformKeyboardEvent* kevent = event->keyEvent();
if (!kevent || kevent->type() == PlatformKeyboardEvent::KeyUp)
return;
Jocelyn Turcotte
*** This bug has been marked as a duplicate of bug 33165 ***