mirror of https://github.com/vector-im/riot-web
				
				
				
			Revert "Merge pull request #841 from matrix-org/luke/fix-double-dialogs"
This reverts commitpull/21833/head1913a32fbd, reversing changes made to0c16298c45.
							parent
							
								
									387529d130
								
							
						
					
					
						commit
						19dcd83aeb
					
				| 
						 | 
				
			
			@ -57,9 +57,7 @@ export default React.createClass({
 | 
			
		|||
        }
 | 
			
		||||
    },
 | 
			
		||||
 | 
			
		||||
    // Must be when the key is released (and not pressed) otherwise componentWillUnmount
 | 
			
		||||
    // will focus another element which will receive future key events
 | 
			
		||||
    _onKeyUp: function(e) {
 | 
			
		||||
    _onKeyDown: function(e) {
 | 
			
		||||
        if (e.keyCode === KeyCode.ESCAPE) {
 | 
			
		||||
            e.stopPropagation();
 | 
			
		||||
            e.preventDefault();
 | 
			
		||||
| 
						 | 
				
			
			@ -81,7 +79,7 @@ export default React.createClass({
 | 
			
		|||
        const TintableSvg = sdk.getComponent("elements.TintableSvg");
 | 
			
		||||
 | 
			
		||||
        return (
 | 
			
		||||
            <div onKeyUp={this._onKeyUp} className={this.props.className}>
 | 
			
		||||
            <div onKeyDown={this._onKeyDown} className={this.props.className}>
 | 
			
		||||
                <AccessibleButton onClick={this._onCancelClick}
 | 
			
		||||
                    className="mx_Dialog_cancelButton"
 | 
			
		||||
                >
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
		Reference in New Issue