bug 837293. Don't unset the altGraph modifier when unsetting the control and alt modifiers. r=masayuki
authorTim Abraldes <tabraldes@mozilla.com>
Tue, 18 Jun 2013 20:51:29 -0700
changeset 147211 cbe3a5bb23d855746dcaec0f35dfeafbe7f830e0
parent 147210 b95d093c24c3700f75eb6713afa1b630a0f63251
child 147212 58d5552a5ef406e591187b932e528fe84f0db16f
push id2697
push userbbajaj@mozilla.com
push dateMon, 05 Aug 2013 18:49:53 +0000
treeherdermozilla-beta@dfec938c7b63 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersmasayuki
bugs837293
milestone24.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
bug 837293. Don't unset the altGraph modifier when unsetting the control and alt modifiers. r=masayuki
widget/windows/winrt/MetroInput.cpp
--- a/widget/windows/winrt/MetroInput.cpp
+++ b/widget/windows/winrt/MetroInput.cpp
@@ -433,18 +433,17 @@ MetroInput::OnCharacterReceived(uint32_t
   if (IsControlCharacter(aCharCode)) {
     return;
   }
 
   nsKeyEvent keyEvent(true, NS_KEY_PRESS, mWidget.Get());
   mModifierKeyState.Update();
   if (mModifierKeyState.IsAltGr()) {
     mModifierKeyState.Unset(MODIFIER_CONTROL
-                          | MODIFIER_ALT
-                          | MODIFIER_ALTGRAPH);
+                          | MODIFIER_ALT);
   }
   mModifierKeyState.InitInputEvent(keyEvent);
   keyEvent.time = ::GetMessageTime();
   keyEvent.isChar = true;
   keyEvent.charCode = aCharCode;
   keyEvent.mKeyNameIndex = KEY_NAME_INDEX_PrintableKey;
 
   DispatchEventIgnoreStatus(&keyEvent);