         pressedXKey = false
 
     @copyPasteInput.addEventListener 'input', =>
+      if @readOnly
+        return
       if pressedVKey
         try
           str = @copyPasteInput.value; minIndent = Infinity


    getMode: ->
      @options.mode

    # ## Foundational Resize
    # At the editor core, we will need to resize

      @redrawMain()

  hook 'keydown', 0, (event, state) ->
    if @readOnly
      return
    if event.which isnt BACKSPACE_KEY
      return
    if state.capturedBackspace
