fix: 进入 FREETEXT 后不立即处理当前按键,避免多一个字符
- 进入 FREETEXT 状态后返回 1 表示已处理,不调用 handleFreeTextInput - 用户下次按键时才会添加字符
This commit is contained in:
@@ -424,8 +424,8 @@ int CannedMessageModule::handleInputEvent(const InputEvent *event)
|
|||||||
UIFrameEvent e;
|
UIFrameEvent e;
|
||||||
e.action = UIFrameEvent::Action::REGENERATE_FRAMESET;
|
e.action = UIFrameEvent::Action::REGENERATE_FRAMESET;
|
||||||
notifyObservers(&e);
|
notifyObservers(&e);
|
||||||
// Immediately process the input in the new state (freetext)
|
// 只切换状态,不处理当前按键(让用户下次按键时输入字符)
|
||||||
return handleFreeTextInput(event);
|
return 1;
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user