Skip to content

Commit 29d1394

Browse files
committed
Update ui/src/components/popovers/PasteModal.tsx
1 parent d58dcd9 commit 29d1394

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

internal/hidrpc/hidrpc.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -137,7 +137,7 @@ func NewKeyboardMacroTokenMessage(token uuid.UUID) *Message {
137137
data, _ := token.MarshalBinary()
138138

139139
return &Message{
140-
t: TypeKeyboardMacroState,
140+
t: TypeKeyboardMacroTokenState,
141141
d: data,
142142
}
143143
}

internal/usbgadget/hid_keyboard.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ var keyboardReportDesc = []byte{
6767

6868
/* 1 bit of padding for the Power LED (ignored) */
6969
0x95, 0x01, /* REPORT_COUNT (1) */
70-
0x75, 0x03, /* REPORT_SIZE (1) */
70+
0x75, 0x03, /* REPORT_SIZE (3) */
7171
0x91, 0x03, /* OUTPUT (Cnst,Var,Abs) */
7272

7373
/* LED report 1 bit for Shift */
@@ -80,7 +80,7 @@ var keyboardReportDesc = []byte{
8080

8181
/* 1 bit of padding for the rest of the byte */
8282
0x95, 0x01, /* REPORT_COUNT (1) */
83-
0x75, 0x03, /* REPORT_SIZE (1) */
83+
0x75, 0x03, /* REPORT_SIZE (3) */
8484
0x91, 0x03, /* OUTPUT (Cnst,Var,Abs) */
8585
0xc0, /* END_COLLECTION */
8686
}

ui/src/components/popovers/PasteModal.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -196,7 +196,7 @@ export default function PasteModal() {
196196
setDelayValue(parseInt(e.target.value, 10));
197197
}}
198198
/>
199-
{delayValue < defaultDelay || delayValue > 65534 && (
199+
{(delayValue < defaultDelay || delayValue > 65534) && (
200200
<div className="mt-2 flex items-center gap-x-2">
201201
<ExclamationCircleIcon className="h-4 w-4 text-red-500 dark:text-red-400" />
202202
<span className="text-xs text-red-500 dark:text-red-400">

0 commit comments

Comments
 (0)