Cocoa: Fix avatar menu shortcut
Cocoa: Fix avatar menu shortcut

If focus was in the Omnibox then pressing Command-M would incorrectly trigger the avatar menu.

The problem was due to the fact that when MatchesEventForKeyboardShortcut() matches against a key character it ignores the shift flag.

Fix was to use a key code for the shortcut so that the shift flag was correctly checked.

BUG=104457
TEST=Verified that Command-Shift-M correctly showed the avatar menu while focused on a web page and while focused on the location bar. Verified that Command-M correctly minimized the window while focused on a web page and focused on the location bar.

Review URL: http://codereview.chromium.org/8718002

git-svn-id: de016e52bd170d2d4f2344f9bf92d50478b649e0@111708 0039d316-1c4b-4281-b951-d872f2087c98

gavinp/chromium,adobe/chromium,yitian134/chromium,ropik/chromium,yitian134/chromium,yitian134/chromium,adobe/chromium,adobe/chromium,yitian134/chromium,adobe/chromium,ropik/chromium,gavinp/chromium,gavinp/chromium,yitian134/chromium,ropik/chromium,ropik/chromium,gavinp/chromium,gavinp/chromium,adobe/chromium,yitian134/chromium,ropik/chromium,adobe/chromium,ropik/chromium,adobe/chromium,adobe/chromium,gavinp/chromium,ropik/chromium,yitian134/chromium,yitian134/chromium,gavinp/chromium,gavinp/chromium,adobe/chromium,gavinp/chromium,adobe/chromium,yitian134/chromium,ropik/chromium,yitian134/chromium,ropik/chromium,adobe/chromium,gavinp/chromium