Changeset 85759 in webkit
- Timestamp:
- May 4, 2011 10:47:45 AM (13 years ago)
- Location:
- trunk/Source/WebKit/chromium
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/WebKit/chromium/ChangeLog
r85720 r85759 1 2011-05-04 Jay Civelli <jcivelli@chromium.org> 2 3 Reviewed by Ojan Vafai. 4 5 Send the char events to the select popup if one is showing to fix 6 a bug were pressing a letter would not select the matching option. 7 https://bugs.webkit.org/show_bug.cgi?id=47769 8 9 * src/WebViewImpl.cpp: 10 (WebKit::WebViewImpl::keyEvent): 11 (WebKit::WebViewImpl::charEvent): 12 * src/WebViewImpl.h: 13 1 14 2011-05-03 Justin Novosad <junov@chromium.org> 2 15 -
trunk/Source/WebKit/chromium/src/WebViewImpl.cpp
r85717 r85759 597 597 m_suppressNextKeypressEvent = false; 598 598 599 // Give any select popup a chance at consuming the key event. 600 if (selectPopupHandleKeyEvent(event)) 601 return true; 599 // If there is a select popup, it should be the one processing the event, 600 // not the page. 601 if (m_selectPopup) 602 return m_selectPopup->handleKeyEvent(PlatformKeyboardEventBuilder(event)); 602 603 603 604 // Give Autocomplete a chance to consume the key events it is interested in. … … 643 644 644 645 return keyEventDefault(event); 645 }646 647 bool WebViewImpl::selectPopupHandleKeyEvent(const WebKeyboardEvent& event)648 {649 if (!m_selectPopup)650 return false;651 652 return m_selectPopup->handleKeyEvent(PlatformKeyboardEventBuilder(event));653 646 } 654 647 … … 715 708 bool suppress = m_suppressNextKeypressEvent; 716 709 m_suppressNextKeypressEvent = false; 710 711 // If there is a select popup, it should be the one processing the event, 712 // not the page. 713 if (m_selectPopup) 714 return m_selectPopup->handleKeyEvent(PlatformKeyboardEventBuilder(event)); 717 715 718 716 Frame* frame = focusedWebCoreFrame(); -
trunk/Source/WebKit/chromium/src/WebViewImpl.h
r85241 r85759 384 384 bool keyEventDefault(const WebKeyboardEvent&); 385 385 386 // Returns true if the select popup has consumed the event.387 bool selectPopupHandleKeyEvent(const WebKeyboardEvent&);388 389 386 // Returns true if the autocomple has consumed the event. 390 387 bool autocompleteHandleKeyEvent(const WebKeyboardEvent&);
Note: See TracChangeset
for help on using the changeset viewer.