             if e.which == 13
                 e.preventDefault()
                 submit_line()
+                @_ignore = false
                 @session?.write_data("\n")
                 return false
             else if e.which == 67 and e.ctrlKey

        @element.find(".webapp-console-submit-line").click () =>
            #@focus()
            submit_line()
            @session?.write_data("\n")
            return false


            @_got_remote_data = new Date()
            @element.find(".webapp-console-terminal").css('opacity':'1')
            @element.find("a[href=\"#refresh\"]").removeClass('btn-success').find(".fa").removeClass('fa-spin')
            @reset()
            if @session.init_history?
                #console.log("writing history")
                try
                    @_ignore = true
                    @terminal.write(@session.init_history)
                catch e
                    console.log(e)
