   mode: ''
   toggleToc: -> state.toc = not state.toc
   toggleIndex: -> state.index = not state.index
-  gotoPresent: ->
-    state.mode = 'present'
-    updateView()
+  gotoPresent: -> state.mode = 'present'
   expandInput: ->
     state.mode = (if state.mode then '' else 'write')
   expandView: ->

      read: 'full-view'
      present: 'present'
    }[mode] or ''
    updateView() if old is 'present'
  slide: (nr) -> updateView()
  theme: (v) ->
    model.theme = v

    if e.ctrlKey
      if e.altKey
        hit = switch e.keyCode
          when 26 then state.mode = 'present'; true # ctrl+alt+z
          when 24 then state.mode = 'write'; true # ctrl+alt+x
          when 3 then state.mode = ''; true # ctrl+alt+c
          when 22 then state.mode = 'read'; true # ctrl+alt+v
