title: How do i activate the fullscreen addon in codemirror?
body: <p>The documentation for CodeMirrors fullscreen mode seems to be a bit sparse. For example how do i tell it to listen for keys to activate fullscreen? or how can i use a button to toggle fullscreen?</p>
  
  <p>For benefit to others bellow is the solution i found.</p>