Allow Ctrl-click to keep EmojiPicker window open (#13896)
This commit is contained in:
		
							parent
							
								
									cc650bc023
								
							
						
					
					
						commit
						64154c5161
					
				
					 1 changed files with 4 additions and 3 deletions
				
			
		| 
						 | 
				
			
			@ -199,12 +199,13 @@ class EmojiPickerMenu extends React.PureComponent {
 | 
			
		|||
    };
 | 
			
		||||
  }
 | 
			
		||||
 | 
			
		||||
  handleClick = emoji => {
 | 
			
		||||
  handleClick = (emoji, event) => {
 | 
			
		||||
    if (!emoji.native) {
 | 
			
		||||
      emoji.native = emoji.colons;
 | 
			
		||||
    }
 | 
			
		||||
 | 
			
		||||
    if (!event.ctrlKey) {
 | 
			
		||||
      this.props.onClose();
 | 
			
		||||
    }
 | 
			
		||||
    this.props.onPick(emoji);
 | 
			
		||||
  }
 | 
			
		||||
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		
		Reference in a new issue