mirror of https://github.com/jetkvm/kvm.git
Update ui/src/components/popovers/PasteModal.tsx
This commit is contained in:
parent
d58dcd9cc6
commit
29d1394af5
|
|
@ -137,7 +137,7 @@ func NewKeyboardMacroTokenMessage(token uuid.UUID) *Message {
|
|||
data, _ := token.MarshalBinary()
|
||||
|
||||
return &Message{
|
||||
t: TypeKeyboardMacroState,
|
||||
t: TypeKeyboardMacroTokenState,
|
||||
d: data,
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -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 */
|
||||
}
|
||||
|
|
|
|||
|
|
@ -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">
|
||||
|
|
|
|||
Loading…
Reference in New Issue