Update TypeStr function, optimize x11 type string

This commit is contained in:
vcaesar 2019-12-11 12:39:37 -04:00
parent 9255eff980
commit 1d1ed41db2

View File

@ -730,8 +730,14 @@ func TypeStr(str string, args ...float64) {
if runtime.GOOS == "linux" {
strUc := toUC(str)
for i := 0; i < len(strUc); i++ {
inputUTF(strUc[i])
MicroSleep(tm)
rstr := []rune(strUc[i])
if len(rstr) <= 1 {
ustr := uint32(CharCodeAt(strUc[i], 0))
UnicodeType(ustr)
} else {
inputUTF(strUc[i])
MicroSleep(tm)
}
}
return