mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
IJPL-176873 Add a system property to force screen reader detection for testing
GitOrigin-RevId: 5e0e6571f48cfc6c4ede8a9436c06651052f6e0d
This commit is contained in:
committed by
intellij-monorepo-bot
parent
191ae630ce
commit
c939633bbc
@@ -14,6 +14,7 @@ import com.intellij.ui.User32Ex
|
||||
import com.intellij.ui.mac.foundation.Foundation
|
||||
import com.intellij.ui.mac.foundation.Foundation.NSAutoreleasePool
|
||||
import com.intellij.ui.mac.foundation.ID
|
||||
import com.intellij.util.SystemProperties.getBooleanProperty
|
||||
import com.intellij.util.ui.RawSwingDispatcher
|
||||
import com.sun.jna.platform.win32.WinDef
|
||||
import kotlinx.coroutines.withContext
|
||||
@@ -33,7 +34,7 @@ suspend fun enableScreenReaderSupportIfNecessary() {
|
||||
return
|
||||
}
|
||||
|
||||
if (!isScreenReaderDetected()) {
|
||||
if (!isScreenReaderDetected() && !getBooleanProperty("force.screen.reader.detection", false)) {
|
||||
return
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user