Skip to content

Commit

Permalink
perf: update keycode
Browse files Browse the repository at this point in the history
  • Loading branch information
LeeEirc committed Nov 5, 2024
1 parent 640b8d8 commit f7be67c
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 f7be67c

Please sign in to comment.