Bug 855232 - don't send native msaa accessible events when running in metro, it messes up soft keyboard display. r=dbolter

This commit is contained in:
Jim Mathies 2013-04-05 05:33:41 -05:00
Родитель 82b3f4ae54
Коммит 38a60197ca
1 изменённых файлов: 7 добавлений и 0 удалений

Просмотреть файл

@ -1532,6 +1532,13 @@ AccessibleWrap::HandleAccEvent(AccEvent* aEvent)
nsresult
AccessibleWrap::FirePlatformEvent(AccEvent* aEvent)
{
// Don't fire native MSAA events or mess with the system caret
// when running in metro mode. This confuses input focus tracking
// in metro's UIA implementation.
if (XRE_GetWindowsEnvironment() == WindowsEnvironmentType_Metro) {
return NS_OK;
}
uint32_t eventType = aEvent->GetEventType();
MOZ_STATIC_ASSERT(sizeof(gWinEventMap)/sizeof(gWinEventMap[0]) == nsIAccessibleEvent::EVENT_LAST_ENTRY,