keyshortcuts

This commit is contained in:
Half-Shot 2024-11-15 09:43:20 +00:00
parent f131b803eb
commit 880bb94dea

View File

@ -179,17 +179,17 @@ export function ReactionPopupMenu({
? reaction.name
: `${reaction.name} (${index + 1})`
}
aria-keyshortcuts={
index < ReactionsRowSize
? (index + 1).toString()
: undefined
}
>
<CpdButton
kind="secondary"
className={styles.reactionButton}
disabled={!canReact}
onClick={() => sendReaction(reaction)}
aria-keyshortcuts={
index < ReactionsRowSize
? (index + 1).toString()
: undefined
}
>
{reaction.emoji}
</CpdButton>