mirror of
https://gitee.com/openharmony/inputmethod_imf
synced 2024-12-20 05:28:45 +00:00
modify code
Signed-off-by: zhaolinglan <zhaolinglan@huawei.com>
This commit is contained in:
parent
d376805963
commit
ff6d3b7701
@ -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,
|
||||
[¤t](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,
|
||||
[¤t](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) {
|
||||
|
Loading…
Reference in New Issue
Block a user