mirror of
https://github.com/meshtastic/firmware.git
synced 2025-12-15 07:12:34 +00:00
UpDown situational destination for textMessage
This commit is contained in:
@@ -1506,6 +1506,9 @@ int Screen::handleInputEvent(const InputEvent *event)
|
|||||||
// UP/DOWN in message screen scrolls through message threads
|
// UP/DOWN in message screen scrolls through message threads
|
||||||
if (ui->getUiState()->currentFrame == framesetInfo.positions.textMessage) {
|
if (ui->getUiState()->currentFrame == framesetInfo.positions.textMessage) {
|
||||||
|
|
||||||
|
if (messageStore.getMessages().empty()) {
|
||||||
|
cannedMessageModule->LaunchWithDestination(NODENUM_BROADCAST);
|
||||||
|
} else {
|
||||||
if (event->inputEvent == INPUT_BROKER_UP) {
|
if (event->inputEvent == INPUT_BROKER_UP) {
|
||||||
graphics::MessageRenderer::scrollUp();
|
graphics::MessageRenderer::scrollUp();
|
||||||
setFastFramerate(); // match existing behavior
|
setFastFramerate(); // match existing behavior
|
||||||
@@ -1518,6 +1521,7 @@ int Screen::handleInputEvent(const InputEvent *event)
|
|||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
// Use left or right input from a keyboard to move between frames,
|
// Use left or right input from a keyboard to move between frames,
|
||||||
// so long as a mesh module isn't using these events for some other purpose
|
// so long as a mesh module isn't using these events for some other purpose
|
||||||
if (showingNormalScreen) {
|
if (showingNormalScreen) {
|
||||||
|
|||||||
Reference in New Issue
Block a user