From ecec216eb9f30c4f3d2883f744d5b1793d1defea Mon Sep 17 00:00:00 2001 From: Marshall Greenblatt Date: Fri, 20 Apr 2012 18:47:47 +0000 Subject: [PATCH] Mac: Add flagsChanged: signal handler so that modifier keys are correctly passed to JS (issue #574). git-svn-id: https://chromiumembedded.googlecode.com/svn/trunk@598 5089003a-bbd8-11dd-ad1f-f1f9622dbc98 --- cef1/libcef/browser_webview_mac.mm | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/cef1/libcef/browser_webview_mac.mm b/cef1/libcef/browser_webview_mac.mm index de4ad88d8..3faf08977 100644 --- a/cef1/libcef/browser_webview_mac.mm +++ b/cef1/libcef/browser_webview_mac.mm @@ -150,6 +150,11 @@ browser_->UIT_GetWebViewHost()->KeyEvent(theEvent); } +- (void)flagsChanged:(NSEvent *)theEvent { + if (browser_ && browser_->UIT_GetWebView()) + browser_->UIT_GetWebViewHost()->KeyEvent(theEvent); +} + - (BOOL)isOpaque { return YES; }