P E N C I L
Login
SlateJs: Add a shortcut 

Add a keyhandler to editor

<Editor onKeyDown={this.onKeyDown}/>

Handle key

  onKeyDown = (event, change, next) => {

    let mark
    if (isBoldHotkey(event)) {
      mark = 'bold'
    } else {
      return next()
    }
    event.preventDefault()
    change.toggleMark(mark)
  }

Reference:

  1. https://github.com/ianstormtaylor/slate/blob/master/examples/rich-text/index.js