!209 修正设定keyEventObserver和gesture的能力是否开启的标志错误的问题

Merge pull request !209 from Mupceet/release_0623_config
This commit is contained in:
openharmony_ci 2022-06-24 07:43:06 +00:00 committed by Gitee
commit 4a66f93854
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F

View File

@ -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;
}
}