       @setState
         code: code
   handleCopyClick: ->
-    clipboard.writeText @state.code, 'selection'
+    clipboard.writeText @state.code
     toggleModal __('Copy'), __('The code has been copied to the clipboard.')
   render: ->
     <div className='tab-container'>

        <Button bsSize='small' onClick={@handleCopyClick}>
          {__('Copy')}
        </Button>
        <Input style={height: '250px'}
               type='textarea'
               label={__ 'Code'}
               placeholder={__ 'Code'}
               value={@state.code} />
      </div>
    </div>


{React, ReactBootstrap, JSON, toggleModal} = window
{Button, FormControl} = ReactBootstrap
{shell} = require 'electron'
{openExternal} = shell
clipboard = require('electron').clipboard
