src/speech.js
/**
	 * Handle keydown event for Escape key press to stop playback (unless the settings are shown, as ESC closes them).
	 *
	 * @param {Event} event - The keydown event.
	 */
Handle keydown event for Escape key press to stop playback (unless the settings are shown, as ESC closes them).
@param {Event} event - The keydown event.
Handle keydown event for Escape key press to stop playback ( unless the settings are shown as ESC closes them ) . @param { Event } event - The keydown event .
handleEscapeKeydown( event ) {
		if ( this.state.playing && ESCAPE_KEY_CODE === event.which && ! this.state.settingsShown ) {
			this.stop();
		}
	}
handleEscapeKeydown ( event ) { if ( this . state . playing && ESCAPE_KEY_CODE === event . which && ! this . state . settingsShown ) { this . stop ( ) ; } }
Handle keydown event for Escape key press to stop playback (unless the settings are shown, as ESC closes them).
Handle keydown event for Escape key press to stop playback ( unless the settings are shown as ESC closes them ) .