Add Shutdown and reboot to CardKB and friends (#3487)

* Add Shutdown and reboot to CardKB and friends

* aw shucks
This commit is contained in:
Thomas Göttgens
2024-03-24 13:41:45 -05:00
committed by GitHub
co-authored by GitHub
parent 5f529f7ca3
commit b960dc1b41
4 changed files with 24 additions and 2 deletions
+6
View File
@@ -216,6 +216,12 @@ int32_t KbI2cBase::runOnce()
e.inputEvent = meshtastic_ModuleConfig_CannedMessageConfig_InputEventChar_RIGHT;
e.kbchar = 0xb7;
break;
case 0x90: // fn+r
case 0x9b: // fn+s
// just pass those unmodified
e.inputEvent = ANYKEY;
e.kbchar = c;
break;
case 0x0d: // Enter
e.inputEvent = meshtastic_ModuleConfig_CannedMessageConfig_InputEventChar_SELECT;
break;