mirror of
https://github.com/luckfox-eng29/kvm.git
synced 2026-05-28 17:11:20 +02:00
refactor(hid): improve keyboard layout compatibility in HID handling functions
Signed-off-by: luckfox-eng29 <eng29@luckfox.com>
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user