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

remotes/1727458204337373841/tmp_refs/heads/signup-info-prompt
Brian C. Lindner 2020-05-31 14:34:34 -04:00 committed by GitHub
parent cc650bc023
commit 64154c5161
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 4 additions and 3 deletions

View File

@ -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);
}