Fix modifier key to keep the EmojiPicker on macOS (#14096)

lolsob-rspec
Takeshi Umeda 2020-06-20 20:30:40 +09:00 committed by GitHub
parent 88cbcb5804
commit c0b52ac871
1 changed files with 1 additions and 1 deletions

View File

@ -203,7 +203,7 @@ class EmojiPickerMenu extends React.PureComponent {
if (!emoji.native) { if (!emoji.native) {
emoji.native = emoji.colons; emoji.native = emoji.colons;
} }
if (!event.ctrlKey) { if (!(event.ctrlKey || event.metaKey)) {
this.props.onClose(); this.props.onClose();
} }
this.props.onPick(emoji); this.props.onPick(emoji);