[Glitch] Allow Ctrl-click to keep EmojiPicker window open

Port 64154c5161 to glitch-soc

Signed-off-by: Thibaut Girka <thib@sitedethib.com>
signup-info-prompt
Brian C. Lindner 2020-05-31 14:34:34 -04:00 committed by Thibaut Girka
parent 89de02f7aa
commit a8559458c3
1 changed files with 4 additions and 3 deletions

View File

@ -279,12 +279,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);
}