Skip to content

Commit

Permalink
Allow Ctrl-click to keep EmojiPicker window open (mastodon#13896)
Browse files Browse the repository at this point in the history
  • Loading branch information
Brian C. Lindner authored and Mage committed Jan 14, 2022
1 parent ffc6e7f commit c972f86
Showing 1 changed file with 4 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -199,12 +199,13 @@ class EmojiPickerMenu extends React.PureComponent {
};
}

handleClick = emoji => {
handleClick = (emoji, event) => {
if (!emoji.native) {
emoji.native = emoji.colons;
}

this.props.onClose();
if (!event.ctrlKey) {
this.props.onClose();
}
this.props.onPick(emoji);
}

Expand Down

0 comments on commit c972f86

Please sign in to comment.