Merge branch 'master' into tft-gui-work

This commit is contained in:
Manuel 2024-05-22 17:58:53 +02:00 committed by GitHub
commit 568e43b7ca
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -155,6 +155,9 @@ int32_t LinuxInput::runOnce()
case KEY_ENTER: // Enter
e.inputEvent = meshtastic_ModuleConfig_CannedMessageConfig_InputEventChar_SELECT;
break;
case KEY_POWER:
system("poweroff");
break;
default: // all other keys
if (keymap[code]) {
e.inputEvent = ANYKEY;