fix: 修复 INACTIVE 状态下 UP/DOWN 仍能进入快捷回复的问题

- handleMessageSelectorInput() 在 INACTIVE 状态时直接返回 false
- 按 * 键进入 FREETEXT 模式
This commit is contained in:
2026-03-30 17:20:03 +08:00
parent dc5486d7d8
commit 8b35795346
2 changed files with 6 additions and 0 deletions
@@ -601,6 +601,11 @@ int CannedMessageModule::handleDestinationSelectionInput(const InputEvent *event
bool CannedMessageModule::handleMessageSelectorInput(const InputEvent *event, bool isUp, bool isDown, bool isSelect)
{
// INACTIVE 状态下不处理 UP/DOWN(由 * 键触发自由文本输入)
if (runState == CANNED_MESSAGE_RUN_STATE_INACTIVE) {
return false;
}
// Override isDown and isSelect ONLY for canned message list behavior
if (runState == CANNED_MESSAGE_RUN_STATE_ACTIVE) {
if (event->inputEvent == INPUT_BROKER_USER_PRESS) {