mirror of
https://github.com/go-vgo/robotgo
synced 2026-05-23 17:59:12 +00:00
Update Unicode Type args
This commit is contained in:
parent
16e0808dbd
commit
60ddc20e02
1 changed files with 5 additions and 1 deletions
6
key.go
6
key.go
|
|
@ -591,8 +591,12 @@ func CharCodeAt(s string, n int) rune {
|
|||
}
|
||||
|
||||
// UnicodeType tap uint32 unicode
|
||||
func UnicodeType(str uint32, pid int) {
|
||||
func UnicodeType(str uint32, args ...int) {
|
||||
cstr := C.uint(str)
|
||||
pid := 0
|
||||
if len(args) > 0 {
|
||||
pid = args[0]
|
||||
}
|
||||
C.unicodeType(cstr, C.int32_t(pid))
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue