fix: 输入状态下 * 仅作为退格键,不输入字符

- 移除 freetext.length() > 0 的条件判断
- * 始终作为退格键处理
This commit is contained in:
2026-03-30 18:29:24 +08:00
parent df7cbbd36c
commit 4c81d35964
@@ -926,8 +926,8 @@ bool CannedMessageModule::handleFreeTextInput(const InputEvent *event)
return handleTabSwitch(event); // Reuse tab logic
}
// '*' key from TCA9535 numpad acts as backspace (only if there's text)
if (event->kbchar == '*' && this->freetext.length() > 0) {
// '*' key from TCA9535 numpad acts as backspace (always, even if empty)
if (event->kbchar == '*') {
payload = 0x08;
lastTouchMillis = millis();
runOnce();