Fix escape for cancelling replies
Signed-off-by: Šimon Brandner <simon.bra.ag@gmail.com>pull/21833/head
							parent
							
								
									f113748520
								
							
						
					
					
						commit
						4f065ad822
					
				|  | @ -156,13 +156,14 @@ export default class SendMessageComposer extends React.Component { | |||
|             this.onVerticalArrow(event, true); | ||||
|         } else if (event.key === Key.ARROW_DOWN) { | ||||
|             this.onVerticalArrow(event, false); | ||||
|         } else if (this._prepareToEncrypt) { | ||||
|             this._prepareToEncrypt(); | ||||
|         } else if (event.key === Key.ESCAPE) { | ||||
|             dis.dispatch({ | ||||
|                 action: 'reply_to_event', | ||||
|                 event: null, | ||||
|             }); | ||||
|         } else if (this._prepareToEncrypt) { | ||||
|             // This needs to be last!
 | ||||
|             this._prepareToEncrypt(); | ||||
|         } | ||||
|     }; | ||||
| 
 | ||||
|  |  | |||
		Loading…
	
		Reference in New Issue
	
	 Šimon Brandner
						Šimon Brandner