Bug 166240 part.7 Add support KeyboardEvent.location on Gonk r=smaug

This commit is contained in:
Masayuki Nakano 2012-05-03 17:35:02 +09:00
parent 8ec326e17d
commit c03b9781a1

View File

@ -217,6 +217,7 @@ sendKeyEventWithMsg(PRUint32 keyCode,
{
nsKeyEvent event(true, msg, NULL);
event.keyCode = keyCode;
event.location = nsIDOMKeyEvent::DOM_KEY_LOCATION_MOBILE;
event.time = timeMs;
event.flags |= flags;
return nsWindow::DispatchInputEvent(event);