Fix #167 - Enable cmd+enter on Mac to submit form
This commit is contained in:
		
							parent
							
								
									cda297450f
								
							
						
					
					
						commit
						73c142fb94
					
				| 
						 | 
					@ -95,7 +95,7 @@ const ComposeForm = React.createClass({
 | 
				
			||||||
  },
 | 
					  },
 | 
				
			||||||
 | 
					
 | 
				
			||||||
  handleKeyUp (e) {
 | 
					  handleKeyUp (e) {
 | 
				
			||||||
    if (e.keyCode === 13 && e.ctrlKey) {
 | 
					    if (e.keyCode === 13 && (e.ctrlKey || (e.metaKey && e.metaKey === '⌘-'))) {
 | 
				
			||||||
      this.props.onSubmit();
 | 
					      this.props.onSubmit();
 | 
				
			||||||
    }
 | 
					    }
 | 
				
			||||||
  },
 | 
					  },
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
		Reference in New Issue