From bd5f899b6df46be93096b90c9236408fe2ab3c06 Mon Sep 17 00:00:00 2001 From: m1k1o Date: Sun, 21 Jun 2020 14:45:04 +0200 Subject: [PATCH] kbd-modifiers add debug log --- server/internal/websocket/control.go | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/server/internal/websocket/control.go b/server/internal/websocket/control.go index f477a0e..442ef3f 100644 --- a/server/internal/websocket/control.go +++ b/server/internal/websocket/control.go @@ -152,6 +152,12 @@ func (h *MessageHandler) controlKeyboard(id string, session types.Session, paylo ScrollLock = 1 } + h.logger.Debug(). + Int("NumLock", NumLock). + Int("CapsLock", CapsLock). + Int("ScrollLock", ScrollLock). + Msg("setting keyboard modifiers") + h.remote.SetKeyboardModifiers(NumLock, CapsLock, ScrollLock) return nil }