Skip to content

Commit

Permalink
Merge pull request #5 from AdmitHub/persist-skin-tone-keyboard
Browse files Browse the repository at this point in the history
Enable skin tone selection persistence via keyboard actions
  • Loading branch information
neckenth authored Jan 10, 2023
2 parents f96c2e5 + 68f474f commit 1261e31
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/components/header/SkinTonePicker.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -107,6 +107,7 @@ export function SkinTonePicker({
if (key === KeyboardEvents.Enter) {
if (isOpen) {
setActiveSkinTone(skinToneVariation);
setSkinTone(skinToneVariation)
focusSearchInput();
} else {
setIsOpen(true);
Expand Down

0 comments on commit 1261e31

Please sign in to comment.