Bug 166240 part.5 Add support KeyboardEvent.location on Android r=cpeterson
authorMasayuki Nakano <masayuki@d-toybox.com>
Thu, 03 May 2012 17:35:02 +0900
changeset 92959 b5a2056342d7af30693db9b2f4367905ac613d54
parent 92958 27b17363e5bac3a9e30fef16e1d7bb04fa4604e9
child 92960 efa1a19df3e47ed499efdbe4762c497572dfeacb
push id8914
push usermasayuki@d-toybox.com
push dateThu, 03 May 2012 08:35:15 +0000
treeherdermozilla-inbound@de5745bce8bc [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewerscpeterson
bugs166240
milestone15.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 166240 part.5 Add support KeyboardEvent.location on Android r=cpeterson
widget/android/nsWindow.cpp
--- a/widget/android/nsWindow.cpp
+++ b/widget/android/nsWindow.cpp
@@ -1736,16 +1736,17 @@ nsWindow::InitKeyEvent(nsKeyEvent& event
         event.keyCode = domKeyCode;
         event.pluginEvent = pluginEvent;
     }
 
     event.InitBasicModifiers(gMenu,
                              key.IsAltPressed(),
                              key.IsShiftPressed(),
                              false);
+    event.location = nsIDOMKeyEvent::DOM_KEY_LOCATION_MOBILE;
     event.time = key.Time();
 
     if (gMenu)
         gMenuConsumed = true;
 }
 
 void
 nsWindow::HandleSpecialKey(AndroidGeckoEvent *ae)