summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authoravi@chromium.org <avi@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-05-21 19:30:18 +0000
committeravi@chromium.org <avi@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-05-21 19:30:18 +0000
commita552526e396f22349a510e52045425ad0ea6f250 (patch)
tree24aead64587853d6abe2ebdf66d0694963349276
parentd24070e2bfa3eadacb4372d12c8e17a15978d985 (diff)
downloadchromium_src-a552526e396f22349a510e52045425ad0ea6f250.zip
chromium_src-a552526e396f22349a510e52045425ad0ea6f250.tar.gz
chromium_src-a552526e396f22349a510e52045425ad0ea6f250.tar.bz2
Meta key is not the same as Alt key on Windows.
See http://trac.webkit.org/changeset/29375 http://crbug.com/2215 Review URL: http://codereview.chromium.org/113716 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@16641 0039d316-1c4b-4281-b951-d872f2087c98
-rw-r--r--webkit/api/src/win/WebInputEventFactory.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/webkit/api/src/win/WebInputEventFactory.cpp b/webkit/api/src/win/WebInputEventFactory.cpp
index 96fa197..0a450d0 100644
--- a/webkit/api/src/win/WebInputEventFactory.cpp
+++ b/webkit/api/src/win/WebInputEventFactory.cpp
@@ -129,7 +129,7 @@ WebKeyboardEvent WebInputEventFactory::keyboardEvent(HWND hwnd, UINT message,
if (GetKeyState(VK_CONTROL) & 0x8000)
result.modifiers |= WebInputEvent::ControlKey;
if (GetKeyState(VK_MENU) & 0x8000)
- result.modifiers |= (WebInputEvent::AltKey | WebInputEvent::MetaKey);
+ result.modifiers |= WebInputEvent::AltKey;
if (LOWORD(lparam) > 1)
result.modifiers |= WebInputEvent::IsAutoRepeat;
@@ -271,7 +271,7 @@ WebMouseEvent WebInputEventFactory::mouseEvent(HWND hwnd, UINT message,
if (wparam & MK_SHIFT)
result.modifiers |= WebInputEvent::ShiftKey;
if (GetKeyState(VK_MENU) & 0x8000)
- result.modifiers |= (WebInputEvent::AltKey | WebInputEvent::MetaKey); // FIXME: set META properly
+ result.modifiers |= WebInputEvent::AltKey;
return result;
}
@@ -353,7 +353,7 @@ WebMouseWheelEvent WebInputEventFactory::mouseWheelEvent(HWND hwnd, UINT message
if (keyState & MK_CONTROL)
result.modifiers |= WebInputEvent::ControlKey;
if (getKeyState(VK_MENU) & 0x8000)
- result.modifiers |= (WebInputEvent::AltKey | WebInputEvent::MetaKey);
+ result.modifiers |= WebInputEvent::AltKey;
// Set coordinates by translating event coordinates from screen to client.
POINT clientPoint = { result.globalX, result.globalY };