From 3bae027c5e97b438ba54c1fa87f9afda37b88362 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:05:05 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20*=20=E9=94=AE=E5=9C=A8=E7=A9=BA=E6=96=87?= =?UTF-8?q?=E6=9C=AC=E6=97=B6=E4=BD=9C=E4=B8=BA=E6=99=AE=E9=80=9A=E5=AD=97?= =?UTF-8?q?=E7=AC=A6=E8=80=8C=E9=9D=9E=E9=80=80=E6=A0=BC=E9=94=AE=E5=A4=84?= =?UTF-8?q?=E7=90=86?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 当 freetext 为空时,* 应该添加到文本中 - 只有 freetext 有内容时,* 才作为退格键 --- .../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 c825d1b..ad79b97 100644 --- a/code/firmware-2.7.15.567b8ea/src/modules/CannedMessageModule.cpp +++ b/code/firmware-2.7.15.567b8ea/src/modules/CannedMessageModule.cpp @@ -926,8 +926,8 @@ bool CannedMessageModule::handleFreeTextInput(const InputEvent *event) return handleTabSwitch(event); // Reuse tab logic } - // '*' key from TCA9535 numpad acts as backspace - if (event->kbchar == '*') { + // '*' key from TCA9535 numpad acts as backspace (only if there's text) + if (event->kbchar == '*' && this->freetext.length() > 0) { payload = 0x08; lastTouchMillis = millis(); runOnce();