diff options
author | joi@chromium.org <joi@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-08-27 22:59:53 +0000 |
---|---|---|
committer | joi@chromium.org <joi@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-08-27 22:59:53 +0000 |
commit | 7699dfe771c34738bb06066a3e507197c5ae7097 (patch) | |
tree | 182c7e662fc82de32560e65164307d3ed4610296 /chrome_frame | |
parent | 313fa7d826b98b669edb1cc3f9061935ae77f7ef (diff) | |
download | chromium_src-7699dfe771c34738bb06066a3e507197c5ae7097.zip chromium_src-7699dfe771c34738bb06066a3e507197c5ae7097.tar.gz chromium_src-7699dfe771c34738bb06066a3e507197c5ae7097.tar.bz2 |
Disable forwarding of accelerators to privileged host.
BUG=none
TEST=none
Review URL: http://codereview.chromium.org/3276001
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@57745 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome_frame')
-rw-r--r-- | chrome_frame/chrome_frame_npapi.cc | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/chrome_frame/chrome_frame_npapi.cc b/chrome_frame/chrome_frame_npapi.cc index ecfad56..e99310e 100644 --- a/chrome_frame/chrome_frame_npapi.cc +++ b/chrome_frame/chrome_frame_npapi.cc @@ -425,7 +425,8 @@ void ChromeFrameNPAPI::OnAcceleratorPressed(int tab_handle, // WM_KEYUP, etc, which will result in messages like WM_CHAR, WM_SYSCHAR, etc // being posted to the message queue. We don't post these messages here to // avoid these messages from getting handled twice. - if (accel_message.message != WM_CHAR && + if (!is_privileged_ && + accel_message.message != WM_CHAR && accel_message.message != WM_DEADCHAR && accel_message.message != WM_SYSCHAR && accel_message.message != WM_SYSDEADCHAR) { |