[Webkit-unassigned] [Bug 40757] [Qt] Unfinite auto-typing in Flash

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Sun Nov 14 20:09:35 PST 2010


https://bugs.webkit.org/show_bug.cgi?id=40757





--- Comment #4 from Vladimir Baldetski <pepelaz at sibmail.com>  2010-11-14 20:09:36 PST ---
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();
   }

-- 
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