refactor(hid): improve keyboard layout compatibility in HID handling functions

Signed-off-by: luckfox-eng29 <eng29@luckfox.com>
This commit is contained in:
luckfox-eng29
2026-04-29 20:03:13 +08:00
parent a1da483b27
commit 6292537c23
33 changed files with 2226 additions and 96 deletions

View File

@@ -142,6 +142,9 @@ func newSession(sessionConfig SessionConfig) (*Session, error) {
handleTerminalChannel(d)
case "serial":
handleSerialChannel(d)
case "hid":
session.HidChannel = d
go handleHidChannel(d, session)
default:
if strings.HasPrefix(d.Label(), uploadIdPrefix) {
go handleUploadChannel(d)