Fix KEY_SPACE

pull/3/head
Minizbot2012 4 years ago
parent 7cb41ef09f
commit 0299378f7b
No known key found for this signature in database
GPG Key ID: 977C8ADE12361917

@ -2,6 +2,7 @@ package keys
import (
"fmt"
"strings"
"fyne.io/fyne"
)
@ -24,7 +25,7 @@ func CKIFyneKeyMap(e fyne.KeyName) int {
if val, ok := FyneToASCII[e]; ok {
return val
}
return CommonToASCII["KEY_"+string(e)]
return CommonToASCII["KEY_"+strings.ToUpper(string(e))]
}
//CKICommonName returns common name for ascii

@ -27,7 +27,7 @@ type Page struct {
func (bp *Page) TypeKey(e *fyne.KeyEvent) {
bp.Bind.Bound = keys.CKIFyneKeyMap(e.Name)
if keys.CKIFIsCMPLX(e.Name) {
kp := keys.ASCIIToCommon[int(e.Name[0])]
kp := keys.CKICommonName(bp.Bind.Bound)
bp.dev["BL"].(*widget.Label).SetText(kp)
} else {
kp := string(e.Name)

Loading…
Cancel
Save