Close sticker picker on Escape keyup
This commit is contained in:
parent
020d78e62b
commit
46b4cf56a3
3 changed files with 34 additions and 0 deletions
|
@ -81,6 +81,13 @@ export const StickerButton = React.memo(
|
|||
[setOpen, onPickSticker]
|
||||
);
|
||||
|
||||
const handleClose = React.useCallback(
|
||||
() => {
|
||||
setOpen(false);
|
||||
},
|
||||
[setOpen]
|
||||
);
|
||||
|
||||
const handleClickAddPack = React.useCallback(
|
||||
() => {
|
||||
setOpen(false);
|
||||
|
@ -253,6 +260,7 @@ export const StickerButton = React.memo(
|
|||
i18n={i18n}
|
||||
style={style}
|
||||
packs={installedPacks}
|
||||
onClose={handleClose}
|
||||
onClickAddPack={handleClickAddPack}
|
||||
onPickSticker={handlePickSticker}
|
||||
recentStickers={recentStickers}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue