From: Takeshi Umeda Date: Sat, 20 Jun 2020 11:30:40 +0000 (+0900) Subject: Fix modifier key to keep the EmojiPicker on macOS (#14096) X-Git-Url: https://git.xn--scling-oua.cat.family/?a=commitdiff_plain;h=434a6d0b15ff413c6e4d7e0c3763af6429ad25b6;p=mastodon.git Fix modifier key to keep the EmojiPicker on macOS (#14096) --- 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 a6186010b..360a7af6a 100644 --- a/app/javascript/mastodon/features/compose/components/emoji_picker_dropdown.js +++ b/app/javascript/mastodon/features/compose/components/emoji_picker_dropdown.js @@ -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);