Skip to content

Commit

Permalink
perf: keyboard code
Browse files Browse the repository at this point in the history
  • Loading branch information
LeeEirc committed Nov 14, 2024
1 parent a051ff7 commit 47f2e13
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion pkg/session/parser.go
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,8 @@ func (p *Parser) ParseStream(userInChan chan *Message) {
}
b = append(b, []byte(to)...)
} else {
b = append(b, byte(keyCode))
// 未知的键值,转成 rune 字符
b = append(b, []byte(string(rune(keyCode)))...)
}
} else {
b = append(b, cb...)
Expand Down

0 comments on commit 47f2e13

Please sign in to comment.