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:
parent
dd5d85ea08
commit
6fdb47ab59
@ -16,8 +16,12 @@ func FyneToKeymap(e *fyne.KeyEvent) hid.Key {
|
|||||||
return hid.GetMappingFromName(string(e.Name))
|
return hid.GetMappingFromName(string(e.Name))
|
||||||
case fyne.KeyLeft, fyne.KeyRight, fyne.KeyUp, fyne.KeyDown:
|
case fyne.KeyLeft, fyne.KeyRight, fyne.KeyUp, fyne.KeyDown:
|
||||||
return hid.GetMappingFromName("ARROW_" + strings.ToUpper(string(e.Name)))
|
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)))
|
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:
|
case fyne.KeyMinus:
|
||||||
return hid.GetMappingFromName("MINUS")
|
return hid.GetMappingFromName("MINUS")
|
||||||
case fyne.KeyEqual:
|
case fyne.KeyEqual:
|
||||||
|
Loading…
Reference in New Issue
Block a user