2
0
mirror of https://github.com/OrbTools/OrbBind synced 2024-10-31 03:20:26 +00:00

cki3 work, nearly complete

This commit is contained in:
Minizbot2012 2021-06-04 18:14:54 -04:00
parent dd5d85ea08
commit 6fdb47ab59
No known key found for this signature in database
GPG Key ID: 977C8ADE12361917

View File

@ -16,8 +16,12 @@ func FyneToKeymap(e *fyne.KeyEvent) hid.Key {
return hid.GetMappingFromName(string(e.Name))
case fyne.KeyLeft, fyne.KeyRight, fyne.KeyUp, fyne.KeyDown:
return hid.GetMappingFromName("ARROW_" + strings.ToUpper(string(e.Name)))
case fyne.KeyBackspace, fyne.KeyBackslash, fyne.KeyEscape, fyne.KeySpace:
case fyne.KeyBackspace, fyne.KeyEscape, fyne.KeySpace:
return hid.GetMappingFromName(strings.ToUpper(string(e.Name)))
case fyne.KeyBackslash:
return hid.GetMappingFromName("BACKSLASH")
case fyne.KeyBackTick:
return hid.GetMappingFromName("BACKQUOTE")
case fyne.KeyMinus:
return hid.GetMappingFromName("MINUS")
case fyne.KeyEqual: