             onClick: (event)->
                 if event.target.className != 'text_input'
                     working_on_submit()
-            onFocus: ->
-                set_auto_hide_time Infinity
+                else
+                    set_auto_hide_time Infinity
             onMouseOver: =>
                 @setState {auto_highlight:false}
             onMouseLeave: =>

                    You've been distracted for #{format_time(time)}.\n\n
                    Did you start working?"


        dialogs = [

            [
                message are_you_working_message
                div

            set_dialog 0

        working_on =
            autoFocus: true
            useHighlight: true
            forceHighlight: auto_highlight and last_entry.task
            # autoFocus: true # it will execute set_auto_hide_time(10)
