(In reply to comment #447)
>   1. Get the HWND of the parent
>   2. Send a message WM_SETFOCUS to that HWND after having sent WM_KILLFOCUS
>      to the plugin

No change. I've also tried:

          HWND parent = GetParent(hWnd);
          if (parent)
            SetFocus(parent);
and
          HWND parent = GetParent(GetFocus());
          if (parent)
            SetFocus(parent);

The above examples clear the yellow focus rectangle, but TAB still tabs
through the plugin's controls.

I think this is the wrong approach though;
https://developer.mozilla.org/en/Code_snippets/Finding_Window_Handles
suggests that there is only one native window in Firefox 4. I reckon
something like my "widget->GetParent()" snippet is required.

Some help from anyone familiar with how to locate the tab widget and
focus it properly would be appreciated.

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/263435

Title:
  Firefox cannot close tab (using Ctrl-w) when flash content is selected
  on page

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to