index.js
/**
   * Close the dialog when the escape key is pressed.
   *
   * @api public
   */
Close the dialog when the escape key is pressed.
@api public
Close the dialog when the escape key is pressed . @api public
escapable() {
    if (!this._escKeyCallback) {
      this._escKeyCallback = e => 'Escape' === e.key && this.emit('escape');
    }
    document.addEventListener('keydown', this._escKeyCallback);
    return this;
  }
escapable ( ) { if ( ! this . _escKeyCallback ) { this . _escKeyCallback = e => 'Escape' === e . key && this . emit ( 'escape' ) ; } document . addEventListener ( 'keydown' , this . _escKeyCallback ) ; return this ; }
Close the dialog when the escape key is pressed.
Close the dialog when the escape key is pressed .
// Save reference to remove listener later