feat: 主页按*进入自由文本输入模式
- 移除 INACTIVE 状态下 UP/DOWN 按键触发快捷回复列表的逻辑 - 按 * 键直接进入 FREETEXT 模式
This commit is contained in:
@@ -412,12 +412,7 @@ int CannedMessageModule::handleInputEvent(const InputEvent *event)
|
||||
if (event->inputEvent == INPUT_BROKER_LEFT || event->inputEvent == INPUT_BROKER_RIGHT) {
|
||||
break;
|
||||
}
|
||||
// Handle UP/DOWN: activate canned message list
|
||||
if (event->inputEvent == INPUT_BROKER_UP || event->inputEvent == INPUT_BROKER_DOWN ||
|
||||
event->inputEvent == INPUT_BROKER_ALT_LONG) {
|
||||
LaunchWithDestination(NODENUM_BROADCAST);
|
||||
return 1;
|
||||
}
|
||||
// 按 * 键进入自由文本输入模式(FREETEXT)
|
||||
// Printable char (ASCII) opens free text compose
|
||||
if (event->kbchar >= 32 && event->kbchar <= 126) {
|
||||
runState = CANNED_MESSAGE_RUN_STATE_FREETEXT;
|
||||
|
||||
Reference in New Issue
Block a user