Browse Source

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

closed-social-v3
Takeshi Umeda 4 years ago
committed by GitHub
parent
commit
434a6d0b15
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      app/javascript/mastodon/features/compose/components/emoji_picker_dropdown.js

+ 1
- 1
app/javascript/mastodon/features/compose/components/emoji_picker_dropdown.js View File

@ -203,7 +203,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…
Cancel
Save