             event.preventDefault()
             event.stopPropagation()
             checkClose()
-
-        $el.keydown (event) ->
-            event.stopPropagation()
-            code = if event.keyCode then event.keyCode else event.which
-            if code == 27
-                checkClose()
 
         $el.on "click", ".status-dropdown", (event) ->
             event.preventDefault()

                deleteAttachments(data).then () ->
                    createAttachments(data).then () ->
                        currentLoading.finish()
                        lightboxService.close($el)
                        $rs[schema.model].getByRef(data.project, data.ref, schema.params).then (obj) ->
                            $rootScope.$broadcast(broadcastEvent, obj)
            promise.then null, (data) ->

class LightboxService extends taiga.Service
    constructor: (@animationFrame, @q, @rootScope) ->

    open: ($el, onClose, onEsc, ignoreEsc) ->
        @.onClose = onClose

        if _.isString($el)
