modify code

Signed-off-by: zhaolinglan <zhaolinglan@huawei.com>
This commit is contained in:
zhaolinglan 2022-10-24 16:17:44 +08:00
parent d376805963
commit ff6d3b7701

View File

@ -1348,7 +1348,7 @@ namespace MiscServices {
return ErrorCode::ERROR_EX_NULL_POINTER;
}
if (keyCode == CombineKeyCode::COMBINE_KEYCODE_CAPS) {
IMSA_HILOGI("KEYCODE_CAPS press");
IMSA_HILOGI("COMBINE_KEYCODE_CAPS press");
auto target = current->mode == "upper"
? FindSubPropertyByCompare(current->id,
[&current](const SubProperty &property) { return property.mode == "lower"; })
@ -1357,7 +1357,7 @@ namespace MiscServices {
return SwitchInputMethod(target.id, target.label);
}
if (keyCode == CombineKeyCode::COMBINE_KEYCODE_SHIFT) {
IMSA_HILOGI("KEYCODE_SHIFT_LEFT press");
IMSA_HILOGI("COMBINE_KEYCODE_SHIFT press");
auto target = current->language == "chinese"
? FindSubPropertyByCompare(current->id,
[&current](const SubProperty &property) { return property.language == "english"; })
@ -1366,7 +1366,7 @@ namespace MiscServices {
return SwitchInputMethod(target.id, target.label);
}
if (keyCode == CombineKeyCode::COMBINE_KEYCODE_CTRL_SHIFT) {
IMSA_HILOGI("KEYCODE_CTRL_LEFT_SHIFT_LEFT press");
IMSA_HILOGI("COMBINE_KEYCODE_CTRL_SHIFT press");
auto properties = ListProperty(MAIN_USER_ID);
for (const auto &property : properties) {
if (property.name != current->id) {