Changeset 77694 in webkit
- Timestamp:
- Feb 4, 2011 4:11:01 PM (13 years ago)
- Location:
- trunk/Source/WebKit2
- Files:
-
- 9 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/WebKit2/ChangeLog
r77678 r77694 1 2011-02-04 Darin Adler <darin@apple.com> 2 3 Reviewed by Dan Bernstein. 4 5 WebKit2 doesn't hide mouse pointer on keypress 6 https://bugs.webkit.org/show_bug.cgi?id=53821 7 rdar://problem/8630895 8 9 * UIProcess/PageClient.h: Renamed didNotHandleKeyEvent to 10 doneWithKeyEvent and added a bool wasEventHandled argument. 11 * UIProcess/WebPageProxy.cpp: 12 (WebKit::WebPageProxy::didReceiveEvent): Changed code to call 13 doneWithKeyEvent and call even if event was handled. 14 15 * UIProcess/API/mac/PageClientImpl.h: Updated for above change. 16 * UIProcess/API/mac/PageClientImpl.mm: 17 (WebKit::PageClientImpl::doneWithKeyEvent): Ditto. But also 18 call [NSCursor setHiddenUntilMouseMoves:YES] when a key down 19 event was handled. This matches what -[WebHTMLView keyDown:] does. 20 * UIProcess/API/qt/qwkpage.cpp: 21 (QWKPagePrivate::doneWithKeyEvent): Ditto. 22 * UIProcess/API/qt/qwkpage_p.h: Ditto. 23 * UIProcess/win/WebView.cpp: 24 (WebKit::WebView::doneWithKeyEvent): Ditto. 25 * UIProcess/win/WebView.h: Ditto. 26 1 27 2011-02-04 Steve Falkenburg <sfalken@apple.com> 2 28 -
trunk/Source/WebKit2/UIProcess/API/mac/PageClientImpl.h
r77386 r77694 77 77 virtual WebCore::FloatRect convertToUserSpace(const WebCore::FloatRect&); 78 78 79 virtual void d idNotHandleKeyEvent(const NativeWebKeyboardEvent&);79 virtual void doneWithKeyEvent(const NativeWebKeyboardEvent&, bool wasEventHandled); 80 80 81 81 virtual PassRefPtr<WebPopupMenuProxy> createPopupMenuProxy(WebPageProxy*); -
trunk/Source/WebKit2/UIProcess/API/mac/PageClientImpl.mm
r77386 r77694 309 309 } 310 310 311 void PageClientImpl::d idNotHandleKeyEvent(const NativeWebKeyboardEvent& event)311 void PageClientImpl::doneWithKeyEvent(const NativeWebKeyboardEvent& event, bool wasEventHandled) 312 312 { 313 313 NSEvent* nativeEvent = event.nativeEvent(); 314 if ([nativeEvent type] == NSKeyDown) { 314 if ([nativeEvent type] != NSKeyDown) 315 return; 316 if (wasEventHandled) 317 [NSCursor setHiddenUntilMouseMoves:YES]; 318 else { 315 319 [m_wkView _setEventBeingResent:nativeEvent]; 316 320 [[NSApplication sharedApplication] sendEvent:nativeEvent]; -
trunk/Source/WebKit2/UIProcess/API/qt/qwkpage.cpp
r77512 r77694 233 233 } 234 234 235 void QWKPagePrivate::d idNotHandleKeyEvent(const NativeWebKeyboardEvent&)235 void QWKPagePrivate::doneWithKeyEvent(const NativeWebKeyboardEvent&, bool) 236 236 { 237 237 } -
trunk/Source/WebKit2/UIProcess/API/qt/qwkpage_p.h
r77365 r77694 80 80 virtual WebCore::FloatRect convertToDeviceSpace(const WebCore::FloatRect&); 81 81 virtual WebCore::FloatRect convertToUserSpace(const WebCore::FloatRect&); 82 virtual void d idNotHandleKeyEvent(const WebKit::NativeWebKeyboardEvent&);82 virtual void doneWithKeyEvent(const WebKit::NativeWebKeyboardEvent&, bool wasEventHandled); 83 83 virtual void selectionChanged(bool, bool, bool, bool); 84 84 virtual PassRefPtr<WebKit::WebPopupMenuProxy> createPopupMenuProxy(WebKit::WebPageProxy*); -
trunk/Source/WebKit2/UIProcess/PageClient.h
r77386 r77694 110 110 virtual WebCore::FloatRect convertToUserSpace(const WebCore::FloatRect&) = 0; 111 111 112 virtual void d idNotHandleKeyEvent(const NativeWebKeyboardEvent&) = 0;112 virtual void doneWithKeyEvent(const NativeWebKeyboardEvent&, bool wasEventHandled) = 0; 113 113 114 114 virtual PassRefPtr<WebPopupMenuProxy> createPopupMenuProxy(WebPageProxy*) = 0; -
trunk/Source/WebKit2/UIProcess/WebPageProxy.cpp
r77667 r77694 2238 2238 m_keyEventQueue.removeFirst(); 2239 2239 2240 m_pageClient->doneWithKeyEvent(event, handled); 2241 2240 2242 if (handled) 2241 2243 break; 2242 2244 2243 m_pageClient->didNotHandleKeyEvent(event);2244 2245 m_uiClient.didNotHandleKeyEvent(this, event); 2245 2246 break; -
trunk/Source/WebKit2/UIProcess/win/WebView.cpp
r77381 r77694 1004 1004 } 1005 1005 1006 void WebView::d idNotHandleKeyEvent(const NativeWebKeyboardEvent& event)1006 void WebView::doneWithKeyEvent(const NativeWebKeyboardEvent& event, bool wasEventHandled) 1007 1007 { 1008 1008 // Calling ::DefWindowProcW will ensure that pressing the Alt key will generate a WM_SYSCOMMAND 1009 1009 // event, e.g. See <http://webkit.org/b/47671>. 1010 ::DefWindowProcW(event.nativeEvent()->hwnd, event.nativeEvent()->message, event.nativeEvent()->wParam, event.nativeEvent()->lParam); 1010 if (!wasEventHandled) 1011 ::DefWindowProcW(event.nativeEvent()->hwnd, event.nativeEvent()->message, event.nativeEvent()->wParam, event.nativeEvent()->lParam); 1011 1012 } 1012 1013 -
trunk/Source/WebKit2/UIProcess/win/WebView.h
r77339 r77694 150 150 virtual WebCore::FloatRect convertToDeviceSpace(const WebCore::FloatRect&); 151 151 virtual WebCore::FloatRect convertToUserSpace(const WebCore::FloatRect&); 152 virtual void d idNotHandleKeyEvent(const NativeWebKeyboardEvent&);152 virtual void doneWithKeyEvent(const NativeWebKeyboardEvent&, bool wasEventHandled); 153 153 virtual void compositionSelectionChanged(bool); 154 154 virtual PassRefPtr<WebPopupMenuProxy> createPopupMenuProxy(WebPageProxy*);
Note: See TracChangeset
for help on using the changeset viewer.