Ticket #8333: 8333.patch
File 8333.patch, 789 bytes (added by , 12 years ago) |
---|
-
_source/plugins/dialog/plugin.js
819 819 // Register the Esc hotkeys. 820 820 registerAccessKey( this, this, '\x1b', null, function() 821 821 { 822 this.getButton( 'cancel' ) && this.getButton( 'cancel' ).click(); 822 var button = this.getButton( 'cancel' ); 823 // If there's a Cancel button, click it, else just fire the cancel event and hide the dialog 824 if ( button ) 825 button.click(); 826 else 827 { 828 if ( this.fire( 'cancel', { hide : true } ).hide !== false ) 829 this.hide(); 830 } 823 831 } ); 824 832 825 833 // Reset the hasFocus state.