When using WebKit component If some page contains a flash object which contains text input fields there is some wrong behavour. Set focus to some text field of flash object, press any key, letter 'g' for example and this letter will be will be repeated indefinitely. When type some other key, for example 'h', then char 'h' r will be will be repeated indefinitely and so on. This makes flash text fields useless and they can't be used in normal way I'm using QT 4.6.2 on Ubuntu 9.10
We are seeing this same issue on some Linux platforms. Is there any update on this issue?
You're right. This happens on Linux platforms. I didn't find any update to fix this, so I had to fix it by myself. I suppose this problem is because of XWindow api functions, some code cheating helped me, but I didn't determine real reasons of this bug.
Could you please explain how you fixed it? Thanks jake
Ok, I've changed some files in qt installation ( qtsdk-2010.04) as I've used webkit in qt, but not standalone. So, what I've done. I've changed files PluginContainerQt.h and PluginContainerQt.cpp in qt/src/3rdparty/webkit/WebCode/plugins/qt directory - I've added QTime m_profiler member to class PluginContainerQt - In method bool PluginContainerQt::x11Event(XEvent* event) at the beginning of it I've added if (event->type == 3) return true; if ( event->type == 2) { if ( m_profiler.elapsed() < 30) return true; char mask[32]; char zero[32]; memset(mask,0, 32); memset(zero,0, 32); Display *d = XOpenDisplay(0); XQueryKeymap(d,mask ); XAutoRepeatOff(d); XCloseDisplay(d); if (!memcmp(mask,zero, 32)) { // No keys are really pressed return true; } m_profiler.restart(); }
I've fogot, also I've added m_profiler.start(); to constructor of PluginContainerQt class
Please follow http://trac.webkit.org/wiki/QtWebKitBugs when reporing bug here. Which Flash version do you use? Could you give an URL to test the issue? If you want to make a patch upstream, here is some info on how to do it: http://trac.webkit.org/wiki/QtWebKitContrib
=== Bulk closing of Qt bugs === If you believe that this bug report is still relevant for a non-Qt port of webkit.org, please re-open it and remove [Qt] from the summary. If you believe that this is still an important QtWebKit bug, please fill a new report at https://bugreports.qt-project.org and add a link to this issue. See http://qt-project.org/wiki/ReportingBugsInQt for additional guidelines.