KeyboardLayout to KeyboardMap.

This commit is contained in:
Miroslav Šedivý
2021-01-15 16:53:03 +01:00
parent 8c47cbae68
commit 0e09609c67
8 changed files with 76 additions and 22 deletions

View File

@ -132,6 +132,12 @@ type ClipboardData struct {
// Keyboard
/////////////////////////////
type KeyboardMap struct {
Event string `json:"event,omitempty"`
Layout string `json:"layout"`
Variant string `json:"variant"`
}
type KeyboardModifiers struct {
Event string `json:"event,omitempty"`
CapsLock *bool `json:"caps_lock"`
@ -139,12 +145,6 @@ type KeyboardModifiers struct {
ScrollLock *bool `json:"scroll_lock"`
}
type KeyboardLayout struct {
Event string `json:"event,omitempty"`
Layout string `json:"layout"`
Variant string `json:"variant"`
}
/////////////////////////////
// Cursor
/////////////////////////////