foucs spelling mistake
This commit is contained in:
parent
3900294189
commit
92b7c3ef36
@ -45,7 +45,7 @@ public class AccessibilityOperation: MVMCoreOperation {
|
|||||||
//MARK: - AccessibilityHandler
|
//MARK: - AccessibilityHandler
|
||||||
/**
|
/**
|
||||||
AccessibilityHandler will observe the page visibility of every view controller and post notification to the first interactive element on the screen.
|
AccessibilityHandler will observe the page visibility of every view controller and post notification to the first interactive element on the screen.
|
||||||
If we have to shift/foucs custom element on the screen on controller shown then we need to pass accessibilityId in the page response.
|
If we have to shift/focus custom element on the screen on controller shown then we need to pass accessibilityId in the page response.
|
||||||
*/
|
*/
|
||||||
open class AccessibilityHandler {
|
open class AccessibilityHandler {
|
||||||
|
|
||||||
@ -75,7 +75,7 @@ open class AccessibilityHandler {
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
This method will capture current foucsed element
|
This method will capture current focused element
|
||||||
*/
|
*/
|
||||||
open func capturePreviousFocusElement() {
|
open func capturePreviousFocusElement() {
|
||||||
previousAccessiblityElement = UIAccessibility.focusedElement(using: .notificationVoiceOver)
|
previousAccessiblityElement = UIAccessibility.focusedElement(using: .notificationVoiceOver)
|
||||||
@ -138,7 +138,7 @@ extension AccessibilityHandler {
|
|||||||
This method is used to capture accessibility views on the screen.
|
This method is used to capture accessibility views on the screen.
|
||||||
If the page has accessibilityId, then it will not post any accessibility notification because respective UI mapped element can be identified only on page shown.
|
If the page has accessibilityId, then it will not post any accessibility notification because respective UI mapped element can be identified only on page shown.
|
||||||
If it has top notification then we are capturing the first focused element and will not post any accessibility notification.
|
If it has top notification then we are capturing the first focused element and will not post any accessibility notification.
|
||||||
If page doesn't have any top notification or accessibilityId then it will post notification to shift foucs to first focused element on the screen.
|
If page doesn't have any top notification or accessibilityId then it will post notification to shift focus to first focused element on the screen.
|
||||||
*/
|
*/
|
||||||
public func willShowPage(_ delegateObject: MVMCoreUIDelegateObject?) {
|
public func willShowPage(_ delegateObject: MVMCoreUIDelegateObject?) {
|
||||||
updateAccessibilityViews(delegateObject)
|
updateAccessibilityViews(delegateObject)
|
||||||
@ -201,8 +201,8 @@ extension AccessibilityHandler {
|
|||||||
@objc extension AccessibilityHandler {
|
@objc extension AccessibilityHandler {
|
||||||
|
|
||||||
/**
|
/**
|
||||||
This method listens for foucs changes.
|
This method listens for focus changes.
|
||||||
When foucs is changed manually then we are cancelling existing operations.
|
When focus is changed manually then we are cancelling existing operations.
|
||||||
*/
|
*/
|
||||||
private func registerForFocusChanges() {
|
private func registerForFocusChanges() {
|
||||||
//Since focus shifted to other elements cancelling existing focus shift notifications if any
|
//Since focus shifted to other elements cancelling existing focus shift notifications if any
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user