Commit 9e4bd88b authored by ap@apple.com's avatar ap@apple.com

Reviewed by Dan Bernstein.

        WebKit2: Sometimes Command-[ opens a new tab and loads the back page in it
        https://bugs.webkit.org/show_bug.cgi?id=56477
        <rdar://problem/8806664>

        * UIProcess/API/mac/PageClientImpl.mm: (WebKit::PageClientImpl::doneWithKeyEvent):
        Set NSApplication current event when re-dispatching a key event that returned from the web
        process unhandled. That way, code that looks at current event modifiers won't be confused.



git-svn-id: svn://svn.chromium.org/blink/trunk@81269 bbb929c8-8fbe-4397-9dbb-9b2b20218538
parent 8cfcbff2
2011-03-16 Alexey Proskuryakov <ap@apple.com>
Reviewed by Dan Bernstein.
WebKit2: Sometimes Command-[ opens a new tab and loads the back page in it
https://bugs.webkit.org/show_bug.cgi?id=56477
<rdar://problem/8806664>
* UIProcess/API/mac/PageClientImpl.mm: (WebKit::PageClientImpl::doneWithKeyEvent):
Set NSApplication current event when re-dispatching a key event that returned from the web
process unhandled. That way, code that looks at current event modifiers won't be confused.
2011-03-16 Sam Weinig <sam@webkit.org>
Reviewed by Adam Roben.
......
......@@ -48,6 +48,7 @@
@interface NSApplication (WebNSApplicationDetails)
- (NSCursor *)_cursorRectCursor;
- (void)_setCurrentEvent:(NSEvent *)event;
@end
using namespace WebCore;
......@@ -330,7 +331,8 @@ void PageClientImpl::doneWithKeyEvent(const NativeWebKeyboardEvent& event, bool
[NSCursor setHiddenUntilMouseMoves:YES];
else {
[m_wkView _setEventBeingResent:nativeEvent];
[[NSApplication sharedApplication] sendEvent:nativeEvent];
[NSApp _setCurrentEvent:nativeEvent];
[NSApp sendEvent:nativeEvent];
}
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment