зеркало из https://github.com/mozilla/gecko-dev.git
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:
Родитель
82b3f4ae54
Коммит
38a60197ca
|
@ -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,
|
||||
|
|
Загрузка…
Ссылка в новой задаче