Skip to content
  • andersca@apple.com's avatar
    <rdar://problem/7155710> · f62d0642
    andersca@apple.com authored
    HTML selects on windows cause containing window to become inactive when opened
            
    Reviewed by Adam Roben.
    
    Redo the way we handle events when a popup menu is shown, based on
    http://blogs.msdn.com/oldnewthing/archive/2004/08/20/217684.aspx
            
    Since a non-active window can't capture the mouse, we use the owning window 
    (the WebView) as the capture window. We then run a recursive message pump that 
    forwards all mouse and keyboard events to the popup menu.
            
    * platform/PopupMenu.h:
    * platform/win/PopupMenuWin.cpp:
    (WebCore::PopupMenu::PopupMenu):
    (WebCore::PopupMenu::show):
    (WebCore::PopupMenu::hide):
    (WebCore::PopupMenu::wndProc):
    
    
    
    git-svn-id: http://svn.webkit.org/repository/webkit/trunk@48446 268f45cc-cd09-0410-ab3c-d52691b4dbfc
    f62d0642