mirror of
https://github.com/m1k1o/neko.git
synced 2024-07-24 14:40:50 +12:00
Merge branch 'kbd-modifier-state-sync' of github.com:m1k1o/neko into dev
This commit is contained in:
commit
3163735890
@ -32,12 +32,6 @@ func New(config *config.Remote) *RemoteManager {
|
|||||||
emmiter: events.New(),
|
emmiter: events.New(),
|
||||||
config: config,
|
config: config,
|
||||||
streaming: false,
|
streaming: false,
|
||||||
|
|
||||||
keyboardModifierState: {
|
|
||||||
CapsLock: false,
|
|
||||||
NumLock: false,
|
|
||||||
ScrollLock: false,
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -227,6 +221,6 @@ func (manager *RemoteManager) SetKeyboard(layout string) {
|
|||||||
xorg.SetKeyboard(layout)
|
xorg.SetKeyboard(layout)
|
||||||
}
|
}
|
||||||
|
|
||||||
func (manager *RemoteManager) SetKeyboard(NumLock int, CapsLock int, ScrollLock int) {
|
func (manager *RemoteManager) SetKeyboardModifiers(NumLock int, CapsLock int, ScrollLock int) {
|
||||||
xorg.SetKeyboardModifiers(NumLock, CapsLock, ScrollLock)
|
xorg.SetKeyboardModifiers(NumLock, CapsLock, ScrollLock)
|
||||||
}
|
}
|
||||||
|
@ -23,5 +23,5 @@ type RemoteManager interface {
|
|||||||
WriteClipboard(data string)
|
WriteClipboard(data string)
|
||||||
ResetKeys()
|
ResetKeys()
|
||||||
SetKeyboard(layout string)
|
SetKeyboard(layout string)
|
||||||
SetKeyboard(NumLock int, CapsLock int, ScrollLock int)
|
SetKeyboardModifiers(NumLock int, CapsLock int, ScrollLock int)
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user