mirror of
https://github.com/openharmony/accessibility.git
synced 2026-08-24 22:11:28 -04:00
!209 修正设定keyEventObserver和gesture的能力是否开启的标志错误的问题
Merge pull request !209 from Mupceet/release_0623_config
This commit is contained in:
@@ -533,17 +533,17 @@ void AccessibilitySettingsConfig::InitCapability()
|
||||
strValue = pref_->GetString("gesture", "");
|
||||
HILOG_DEBUG("gesture = %{public}s", strValue.c_str());
|
||||
if (!std::strcmp(strValue.c_str(), "on")) {
|
||||
filteringKeyEvents_ = true;
|
||||
gesturesSimulation_ = true;
|
||||
} else {
|
||||
filteringKeyEvents_ = false;
|
||||
gesturesSimulation_ = false;
|
||||
}
|
||||
|
||||
strValue = pref_->GetString("keyEventObserver", "");
|
||||
HILOG_DEBUG("keyEventObserver = %{public}s", strValue.c_str());
|
||||
if (!std::strcmp(strValue.c_str(), "on")) {
|
||||
gesturesSimulation_ = true;
|
||||
filteringKeyEvents_ = true;
|
||||
} else {
|
||||
gesturesSimulation_ = false;
|
||||
filteringKeyEvents_ = false;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user