             @mobile_target.css('width', ter.css('width'))
             @mobile_target.css('height', ter.css('height'))
             @_click = (e) =>
+                @user_is_active()
                 t = $(e.target)
                 if t[0]==@mobile_target[0] or t.hasParent(@element).length > 0
                     @focus()

    # Determine the current size (rows and columns) of the DOM
    # element for the editor, then resize the renderer and the
    # remote PTY.
    resize: (internal) =>
        if internal and not @allow_resize
            return
        @allow_resize = false

        if not @session?
            # don't bother if we don't even have a remote connection

                @unpause_rendering()

        e.on 'copy', =>
            @user_is_active()
            @unpause_rendering()
            setTimeout(@focus, 5)  # must happen in next cycle or copy will not work due to loss of focus.

