mirror of
https://github.com/openharmony/miscservices_inputmethod.git
synced 2026-07-19 20:13:32 -04:00
@@ -91,7 +91,7 @@ namespace MiscServices {
|
||||
int mSelectOldEnd = 0;
|
||||
int mSelectNewBegin = 0;
|
||||
int mSelectNewEnd = 0;
|
||||
int mSpecialKeyPress = 0;
|
||||
int32_t mSpecialKeyPress = 0;
|
||||
|
||||
static std::mutex instanceLock_;
|
||||
static sptr<InputMethodController> instance_;
|
||||
|
||||
@@ -361,7 +361,7 @@ using namespace MessageID;
|
||||
int32_t status = keyEvent->GetKeyAction();
|
||||
if (mSpecialKeyPress != 0) {
|
||||
if ((code == MMI::KeyEvent::KEYCODE_CTRL_LEFT || code == MMI::KeyEvent::KEYCODE_CTRL_RIGHT) && status == MMI::KeyEvent::KEY_ACTION_UP) {
|
||||
mSpecailKeyPress--;
|
||||
mSpecialKeyPress--;
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user