From 17ad17dd42bae356a92a988987bb797b37895f12 Mon Sep 17 00:00:00 2001 From: m1k1o Date: Sat, 20 Jun 2020 02:26:47 +0200 Subject: [PATCH] fix typos --- server/internal/remote/manager.go | 8 +------- server/internal/types/remote.go | 2 +- 2 files changed, 2 insertions(+), 8 deletions(-) diff --git a/server/internal/remote/manager.go b/server/internal/remote/manager.go index 8adf2745..568ceaf8 100644 --- a/server/internal/remote/manager.go +++ b/server/internal/remote/manager.go @@ -32,12 +32,6 @@ func New(config *config.Remote) *RemoteManager { emmiter: events.New(), config: config, streaming: false, - - keyboardModifierState: { - CapsLock: false, - NumLock: false, - ScrollLock: false, - } } } @@ -229,6 +223,6 @@ func (manager *RemoteManager) SetKeyboard(layout string) { 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) } diff --git a/server/internal/types/remote.go b/server/internal/types/remote.go index 2a76392c..a4a9d04f 100644 --- a/server/internal/types/remote.go +++ b/server/internal/types/remote.go @@ -23,5 +23,5 @@ type RemoteManager interface { WriteClipboard(data string) ResetKeys() SetKeyboard(layout string) - SetKeyboard(NumLock int, CapsLock int, ScrollLock int) + SetKeyboardModifiers(NumLock int, CapsLock int, ScrollLock int) }