[Tizen] Add missing exceptions regarding Accessibility 28/265528/2 accepted/tizen/6.0/unified/20211022.120542 submit/tizen_6.0/20211022.030327
authorSeoyeon Kim <seoyeon2.kim@samsung.com>
Thu, 21 Oct 2021 09:53:21 +0000 (18:53 +0900)
committerSeoyeon Kim <seoyeon2.kim@samsung.com>
Fri, 22 Oct 2021 01:48:59 +0000 (10:48 +0900)
- Some apps can control Accessibility enability using API forcibly.
 In this case, the apps should be handled by themselves.
- Added an exceptional case in OnAccessibilityNotification.

Change-Id: I5d5511cf8109bcfa4f5aa5a8c6801f8053f9dac6
Signed-off-by: Seoyeon Kim <seoyeon2.kim@samsung.com>
dali/internal/window-system/common/event-handler.cpp

index 5ae362c..e53af77 100755 (executable)
@@ -283,6 +283,13 @@ void EventHandler::OnAccessibilityNotification( const WindowBase::AccessibilityI
     return;
   }
 
+  if( !(info.quickpanelInfo & ( 1 << QUICKPANEL_TYPE_APPS_MENU ) ) && accessibilityAdaptor->IsForcedEnable() )
+  {
+    // When other apps, which are not implemented by DALi, are on top of Apps application,
+    // no event should be occurred on Apps because it's disabled by force already.
+    return;
+  }
+
   // When gesture is ONE_FINGER_SINGLE_TAP, the gesture value is 15.
   // When the state is aborted, the state of accessibility info is 3.
   if( info.gestureValue == 15 && info.state == 3 )