[Glitch] Allow Ctrl-click to keep EmojiPicker window open
Port f8f195b8c2
to glitch-soc
Signed-off-by: Thibaut Girka <thib@sitedethib.com>
lolsob-rspec
parent
61f1d4dbbf
commit
f8980d714a
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue