Allow Ctrl-click to keep EmojiPicker window open (#13896)

th-downstream
Brian C. Lindner 5 years ago committed by GitHub
parent 366942b60f
commit f8f195b8c2

@ -199,12 +199,13 @@ class EmojiPickerMenu extends React.PureComponent {
};
}
handleClick = emoji => {
handleClick = (emoji, event) => {
if (!emoji.native) {
emoji.native = emoji.colons;
}
this.props.onClose();
if (!event.ctrlKey) {
this.props.onClose();
}
this.props.onPick(emoji);
}

Loading…
Cancel
Save