From df7cbbd36c93fa778209c4f24c323a20e8529b5d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=90=B4=E6=96=87=E5=B3=B0?= Date: Mon, 30 Mar 2026 18:15:20 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E8=BF=9B=E5=85=A5=20FREETEXT=20?= =?UTF-8?q?=E5=90=8E=E4=B8=8D=E7=AB=8B=E5=8D=B3=E5=A4=84=E7=90=86=E5=BD=93?= =?UTF-8?q?=E5=89=8D=E6=8C=89=E9=94=AE=EF=BC=8C=E9=81=BF=E5=85=8D=E5=A4=9A?= =?UTF-8?q?=E4=B8=80=E4=B8=AA=E5=AD=97=E7=AC=A6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 进入 FREETEXT 状态后返回 1 表示已处理,不调用 handleFreeTextInput - 用户下次按键时才会添加字符 --- .../src/modules/CannedMessageModule.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/code/firmware-2.7.15.567b8ea/src/modules/CannedMessageModule.cpp b/code/firmware-2.7.15.567b8ea/src/modules/CannedMessageModule.cpp index ad79b97..ff9910a 100644 --- a/code/firmware-2.7.15.567b8ea/src/modules/CannedMessageModule.cpp +++ b/code/firmware-2.7.15.567b8ea/src/modules/CannedMessageModule.cpp @@ -424,8 +424,8 @@ int CannedMessageModule::handleInputEvent(const InputEvent *event) UIFrameEvent e; e.action = UIFrameEvent::Action::REGENERATE_FRAMESET; notifyObservers(&e); - // Immediately process the input in the new state (freetext) - return handleFreeTextInput(event); + // 只切换状态,不处理当前按键(让用户下次按键时输入字符) + return 1; } break;