Fix <rdar://5485108> Type-select while a <select> menu is open doesn't work
authoraroben@apple.com <aroben@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Thu, 15 Nov 2007 23:42:41 +0000 (23:42 +0000)
committeraroben@apple.com <aroben@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Thu, 15 Nov 2007 23:42:41 +0000 (23:42 +0000)
commit59ee994b7825172b406616d3d6d5648f757cc041
treea7b9299579686d26b36d12ebdd0b2e7b6444a4c5
parentbc16b41201b5afbeb572e268afb8b9421c89322b
     Fix <rdar://5485108> Type-select while a <select> menu is open doesn't work

         There were two things broken here:
            - WebView now requires a WM_CHAR message to be sent before it will
              create a keyboard event with a charCode, but we were only sending
              a WM_KEYDOWN event.
            - The popup menu was not updating its focused index when the
              <select> element's selectedIndex changed.

         Reviewed by Adele.

         * platform/win/PopupMenuWin.cpp:
         (WebCore::PopupMenu::updateFromElement): Update the focused index from
         the client's selected index.
         (WebCore::PopupWndProc): When we receive a WM_CHAR message for a
         printable character, manufacture a WM_KEYDOWN message for it and post
         both that and the current WM_CHAR message to the WebView.

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@27825 268f45cc-cd09-0410-ab3c-d52691b4dbfc
WebCore/ChangeLog
WebCore/platform/win/PopupMenuWin.cpp