src/block_mixins/droppable.js
function() {
    this.inner.setAttribute('tabindex', 0);
    this.inner.addEventListener('keyup', (e) => {
      if (e.target !== this.inner) { return; }

      switch(e.keyCode) {
        case 13:
          this.mediator.trigger("block:create", 'Text', null, this.el, { autoFocus: true });
          break;
        case 8:
          this.onDeleteClick.call(this, new CustomEvent('click'));
          return;
      }
    });
  }
function() {
    this.inner.setAttribute('tabindex', 0);
    this.inner.addEventListener('keyup', (e) => {
      if (e.target !== this.inner) { return; }

      switch(e.keyCode) {
        case 13:
          this.mediator.trigger("block:create", 'Text', null, this.el, { autoFocus: true });
          break;
        case 8:
          this.onDeleteClick.call(this, new CustomEvent('click'));
          return;
      }
    });
  }
function ( ) { this . inner . setAttribute ( 'tabindex' , 0 ) ; this . inner . addEventListener ( 'keyup' , ( e ) => { if ( e . target !== this . inner ) { return ; } switch ( e . keyCode ) { case 13 : this . mediator . trigger ( "block:create" , 'Text' , null , this . el , { autoFocus : true } ) ; break ; case 8 : this . onDeleteClick . call ( this , new CustomEvent ( 'click' ) ) ; return ; } } ) ; }
Allow this block to be managed with the keyboard
Allow this block to be managed with the keyboard