[Glitch] Fix modifier key to keep the EmojiPicker on macOS
Port c0b52ac871
to glitch-soc
Signed-off-by: Thibaut Girka <thib@sitedethib.com>
lolsob-rspec
parent
2e48c4ae55
commit
26778b8c30
|
@ -283,7 +283,7 @@ class EmojiPickerMenu extends React.PureComponent {
|
|||
if (!emoji.native) {
|
||||
emoji.native = emoji.colons;
|
||||
}
|
||||
if (!event.ctrlKey) {
|
||||
if (!(event.ctrlKey || event.metaKey)) {
|
||||
this.props.onClose();
|
||||
}
|
||||
this.props.onPick(emoji);
|
||||
|
|
Loading…
Reference in New Issue