 
         e.on 'copy', =>
             @unpause_rendering()
-            setTimeout(@focus, 0)  # must happen in next cycle or copy will not work due to loss of focus.
+            setTimeout(@focus, 5)  # must happen in next cycle or copy will not work due to loss of focus.
 
     _init_colors: () =>
         colors = Terminal.color_schemes[@opts.color_scheme].colors


        pb.on 'paste', =>
            pb.val('')
            setTimeout(f,0)

    #######################################################################
    # Public API

                when 188       # "control-shift-<"
                    @_decrease_font_size()
                    return false
        if (ev.metaKey or ev.ctrlKey or ev.altKey) and (ev.keyCode in [17, 86, 91, 93, 223, 224])  # command or control key (could be a paste coming)
            #console.log("resetting hidden textarea")
            #console.log("clear hidden text area paste bin")
            # clear the hidden textarea pastebin, since otherwise
