Skip to content

Commit f00fab2

Browse files
ProfessorqBen Garwin
authored andcommitted
Do not close FunPanelEmojis on ClickEvent
On cinnamon clicking (using a mouse) on an emoji sends a PointerEvent with pointerType `pen`, causing the emoji picker to close.
1 parent fb566c4 commit f00fab2

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

ts/components/fun/panels/FunPanelEmojis.dom.tsx

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -663,9 +663,7 @@ const Cell = memo(function Cell(props: CellProps): JSX.Element {
663663
const emojiSelection: FunEmojiSelection = {
664664
variantKey: emojiVariant.key,
665665
};
666-
const shouldClose =
667-
event.nativeEvent.pointerType !== 'mouse' &&
668-
!(event.ctrlKey || event.metaKey);
666+
const shouldClose = false;
669667
onSelectEmoji(emojiSelection, shouldClose);
670668
},
671669
[

0 commit comments

Comments
 (0)