 
         finished = false
         stop_editing = () =>
+            if currently_focused_editor?.task_id == task.task_id
+                currently_focused_editor = undefined
             finished = true
             e.removeClass('webapp-task-editing-desc')
             e.find(".webapp-task-desc").removeClass('webapp-task-desc-editing')

        e = task.element
        if not e?
            return
        if e.hasClass('webapp-task-editing-desc') and e.data('cm')?
            e.data('cm').focus()
            return
        e.find(".webapp-task-desc").addClass('webapp-task-desc-editing')
        e.find(".webapp-task-toggle-icons").hide()


        cm = CodeMirror.fromTextArea(elt.find("textarea")[0], opts)
        cm.save = @save
        cm.task_id = task.task_id
        if editor_settings.bindings == 'vim'
            cm.setOption("vimMode", true)

