From: Brian C. Lindner Date: Sun, 31 May 2020 18:34:34 +0000 (-0400) Subject: Allow Ctrl-click to keep EmojiPicker window open (#13896) X-Git-Url: https://git.xn--scling-oua.cat.family/?a=commitdiff_plain;h=64154c5161d4d5c82877fba549d72068cc7f9e16;p=mastodon.git Allow Ctrl-click to keep EmojiPicker window open (#13896) --- diff --git a/app/javascript/mastodon/features/compose/components/emoji_picker_dropdown.js b/app/javascript/mastodon/features/compose/components/emoji_picker_dropdown.js index 582bb0d39..a6186010b 100644 --- a/app/javascript/mastodon/features/compose/components/emoji_picker_dropdown.js +++ b/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; } - - this.props.onClose(); + if (!event.ctrlKey) { + this.props.onClose(); + } this.props.onPick(emoji); }