mirror of
https://github.com/glitch-soc/mastodon.git
synced 2025-02-17 16:13:50 -05:00
[Glitch] Fix modifier key to keep the EmojiPicker on macOS
Port 434a6d0b15ff413c6e4d7e0c3763af6429ad25b6 to glitch-soc Signed-off-by: Thibaut Girka <thib@sitedethib.com>
This commit is contained in:
parent
51922d7ffa
commit
83bc9f68af
@ -283,7 +283,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…
x
Reference in New Issue
Block a user