From 29d1394af5aca37882a5997dc23c0e411aa8ec05 Mon Sep 17 00:00:00 2001 From: Marc Brooks Date: Sat, 4 Oct 2025 00:54:17 -0500 Subject: [PATCH] Update ui/src/components/popovers/PasteModal.tsx --- internal/hidrpc/hidrpc.go | 2 +- internal/usbgadget/hid_keyboard.go | 4 ++-- ui/src/components/popovers/PasteModal.tsx | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/internal/hidrpc/hidrpc.go b/internal/hidrpc/hidrpc.go index 6851d078..e861fe32 100644 --- a/internal/hidrpc/hidrpc.go +++ b/internal/hidrpc/hidrpc.go @@ -137,7 +137,7 @@ func NewKeyboardMacroTokenMessage(token uuid.UUID) *Message { data, _ := token.MarshalBinary() return &Message{ - t: TypeKeyboardMacroState, + t: TypeKeyboardMacroTokenState, d: data, } } diff --git a/internal/usbgadget/hid_keyboard.go b/internal/usbgadget/hid_keyboard.go index 1ffbe9fe..05895206 100644 --- a/internal/usbgadget/hid_keyboard.go +++ b/internal/usbgadget/hid_keyboard.go @@ -67,7 +67,7 @@ var keyboardReportDesc = []byte{ /* 1 bit of padding for the Power LED (ignored) */ 0x95, 0x01, /* REPORT_COUNT (1) */ - 0x75, 0x03, /* REPORT_SIZE (1) */ + 0x75, 0x03, /* REPORT_SIZE (3) */ 0x91, 0x03, /* OUTPUT (Cnst,Var,Abs) */ /* LED report 1 bit for Shift */ @@ -80,7 +80,7 @@ var keyboardReportDesc = []byte{ /* 1 bit of padding for the rest of the byte */ 0x95, 0x01, /* REPORT_COUNT (1) */ - 0x75, 0x03, /* REPORT_SIZE (1) */ + 0x75, 0x03, /* REPORT_SIZE (3) */ 0x91, 0x03, /* OUTPUT (Cnst,Var,Abs) */ 0xc0, /* END_COLLECTION */ } diff --git a/ui/src/components/popovers/PasteModal.tsx b/ui/src/components/popovers/PasteModal.tsx index 651e5948..ab8de215 100644 --- a/ui/src/components/popovers/PasteModal.tsx +++ b/ui/src/components/popovers/PasteModal.tsx @@ -196,7 +196,7 @@ export default function PasteModal() { setDelayValue(parseInt(e.target.value, 10)); }} /> - {delayValue < defaultDelay || delayValue > 65534 && ( + {(delayValue < defaultDelay || delayValue > 65534) && (