mirror of
https://gitee.com/openharmony/accessibility
synced 2024-11-23 15:01:17 +00:00
!209 修正设定keyEventObserver和gesture的能力是否开启的标志错误的问题
Merge pull request !209 from Mupceet/release_0623_config
This commit is contained in:
commit
4a66f93854
@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user