[Glitch] Fix modifier key to keep the EmojiPicker on macOS

Port 434a6d0b15 to glitch-soc

Signed-off-by: Thibaut Girka <thib@sitedethib.com>
This commit is contained in:
Takeshi Umeda 2020-06-20 20:30:40 +09:00 committed by Thibaut Girka
parent 51922d7ffa
commit 83bc9f68af
1 changed files with 1 additions and 1 deletions

View File

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