title: How to create custom key bindings in draft.js?
body: <p>I press <code>CTRL+B</code> => I want selected text bolded.</p>
  
  <hr>
  
  <p>Useful links:  </p>
  
  <ul>
  <li><p><a href="http://facebook.github.io/draft-js/docs/advanced-topics-key-bindings.html#content" rel="nofollow noreferrer">http://facebook.github.io/draft-js/docs/advanced-topics-key-bindings.html#content</a> - describes what <code>keyBindingFn</code> and <code>handleKeyCommand</code> do.   </p></li>
  <li><p><a href="https://github.com/facebook/draft-js/blob/master/examples/draft-0-10-0/rich/rich.html" rel="nofollow noreferrer">https://github.com/facebook/draft-js/blob/master/examples/draft-0-10-0/rich/rich.html</a> - lengthy example.</p></li>
  <li><a href="https://www.youtube.com/watch?v=0k9suXgCtTA" rel="nofollow noreferrer">https://www.youtube.com/watch?v=0k9suXgCtTA</a> - great video explaining how to add a button that will toggle boldness.</li>
  </ul>