 
     @wrapperElement.appendChild @aceElement
 
-    console.log 'Just appended ace element'
-
     @aceEditor = ace.edit @aceElement
 
     @aceEditor.setTheme 'ace/theme/chrome'

          @redrawMain()

        @copyPasteInput.setSelectionRange 0, @copyPasteInput.value.length

  hook 'populate', 0, ->
    setTimeout (=>

        @iceElement.focus()

    pressedVKey = false
    pressedXKey = false

    @copyPasteInput.addEventListener 'keydown', (event) ->
      if event.keyCode is 86
        pressedVKey = true
      else if event.keyCode is 88
        pressedXKey = true

    @copyPasteInput.addEventListener 'keyup', (event) ->
      if event.keyCode is 86
        pressedVKey = false
      else if event.keyCode is 88
        pressedXKey = false

    @copyPasteInput.addEventListener 'input', =>
      if pressedVKey
