Allow Ctrl-click to keep EmojiPicker window open (#13896)

master
Brian C. Lindner 5 years ago committed by GitHub
parent cc650bc023
commit 64154c5161
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 5
      app/javascript/mastodon/features/compose/components/emoji_picker_dropdown.js

@ -199,12 +199,13 @@ class EmojiPickerMenu extends React.PureComponent {
};
}
handleClick = emoji => {
handleClick = (emoji, event) => {
if (!emoji.native) {
emoji.native = emoji.colons;
}
if (!event.ctrlKey) {
this.props.onClose();
}
this.props.onPick(emoji);
}

Loading…
Cancel
Save