Update ui/src/components/popovers/PasteModal.tsx

This commit is contained in:
Marc Brooks 2025-10-04 00:54:17 -05:00
parent d58dcd9cc6
commit 29d1394af5
No known key found for this signature in database
GPG Key ID: 583A6AF2D6AE1DC6
3 changed files with 4 additions and 4 deletions

View File

@ -137,7 +137,7 @@ func NewKeyboardMacroTokenMessage(token uuid.UUID) *Message {
data, _ := token.MarshalBinary()
return &Message{
t: TypeKeyboardMacroState,
t: TypeKeyboardMacroTokenState,
d: data,
}
}

View File

@ -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 */
}

View File

@ -196,7 +196,7 @@ export default function PasteModal() {
setDelayValue(parseInt(e.target.value, 10));
}}
/>
{delayValue < defaultDelay || delayValue > 65534 && (
{(delayValue < defaultDelay || delayValue > 65534) && (
<div className="mt-2 flex items-center gap-x-2">
<ExclamationCircleIcon className="h-4 w-4 text-red-500 dark:text-red-400" />
<span className="text-xs text-red-500 dark:text-red-400">