зеркало из https://github.com/mozilla/gecko-dev.git
Making the Mac key event generation code follow the new spec for autokeys generate keypress events. Brade has run this change on her machine for about a week, I tested it on my machine without any problems. Reviewed by Brade and Dagley.
This commit is contained in:
Родитель
5f056b6037
Коммит
fb2a2d0f0b
|
@ -697,7 +697,6 @@ PRBool nsMacEventHandler::HandleKeyEvent(EventRecord& aOSEvent)
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case keyDown:
|
case keyDown:
|
||||||
case autoKey:
|
|
||||||
InitializeKeyEvent(keyEvent,aOSEvent,focusedWidget,NS_KEY_DOWN);
|
InitializeKeyEvent(keyEvent,aOSEvent,focusedWidget,NS_KEY_DOWN);
|
||||||
result = focusedWidget->DispatchWindowEvent(keyEvent);
|
result = focusedWidget->DispatchWindowEvent(keyEvent);
|
||||||
//if (result == PR_FALSE) // continue processing??? talk to Tague about this (key event spec)
|
//if (result == PR_FALSE) // continue processing??? talk to Tague about this (key event spec)
|
||||||
|
@ -706,6 +705,11 @@ PRBool nsMacEventHandler::HandleKeyEvent(EventRecord& aOSEvent)
|
||||||
result = focusedWidget->DispatchWindowEvent(keyEvent);
|
result = focusedWidget->DispatchWindowEvent(keyEvent);
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
|
|
||||||
|
case autoKey:
|
||||||
|
InitializeKeyEvent(keyEvent,aOSEvent,focusedWidget,NS_KEY_PRESS);
|
||||||
|
result = focusedWidget->DispatchWindowEvent(keyEvent);
|
||||||
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
return result;
|
return result;
|
||||||
|
|
Загрузка…
Ссылка в новой задаче