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

lolsob-rspec
Brian C. Lindner 2020-05-31 14:34:34 -04:00 committed by GitHub
parent 366942b60f
commit f8f195b8c2
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) { if (!emoji.native) {
emoji.native = emoji.colons; emoji.native = emoji.colons;
} }
if (!event.ctrlKey) {
this.props.onClose(); this.props.onClose();
}
this.props.onPick(emoji); this.props.onPick(emoji);
} }