Fix modifier key to keep the EmojiPicker on macOS (#14096)
This commit is contained in:
		
							parent
							
								
									cb3c6d1780
								
							
						
					
					
						commit
						434a6d0b15
					
				
					 1 changed files with 1 additions and 1 deletions
				
			
		| 
						 | 
					@ -203,7 +203,7 @@ class EmojiPickerMenu extends React.PureComponent {
 | 
				
			||||||
    if (!emoji.native) {
 | 
					    if (!emoji.native) {
 | 
				
			||||||
      emoji.native = emoji.colons;
 | 
					      emoji.native = emoji.colons;
 | 
				
			||||||
    }
 | 
					    }
 | 
				
			||||||
    if (!event.ctrlKey) {
 | 
					    if (!(event.ctrlKey || event.metaKey)) {
 | 
				
			||||||
      this.props.onClose();
 | 
					      this.props.onClose();
 | 
				
			||||||
    }
 | 
					    }
 | 
				
			||||||
    this.props.onPick(emoji);
 | 
					    this.props.onPick(emoji);
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		
		Reference in a new issue