mirror of
https://github.com/signalapp/Signal-Desktop.git
synced 2026-04-27 11:53:23 +01:00
Fix keyboard handling in ReactionPicker/Viewer and their child views
This commit is contained in:
committed by
Fedor Indutnyy
parent
0bf77fadd3
commit
03b750d072
@@ -173,6 +173,11 @@ export function CustomizingPreferredReactionsModal({
|
||||
onClick={() => {
|
||||
resetDraftEmoji();
|
||||
}}
|
||||
onKeyDown={event => {
|
||||
if (event.key === 'Enter' || event.key === 'Space') {
|
||||
resetDraftEmoji();
|
||||
}
|
||||
}}
|
||||
variant={ButtonVariant.SecondaryAffirmative}
|
||||
>
|
||||
{i18n('reset')}
|
||||
@@ -182,6 +187,11 @@ export function CustomizingPreferredReactionsModal({
|
||||
onClick={() => {
|
||||
savePreferredReactions();
|
||||
}}
|
||||
onKeyDown={event => {
|
||||
if (event.key === 'Enter' || event.key === 'Space') {
|
||||
savePreferredReactions();
|
||||
}
|
||||
}}
|
||||
>
|
||||
{i18n('save')}
|
||||
</Button>
|
||||
|
||||
Reference in New Issue
Block a user