         template_suggestion_name: Handlebars.compile $('#dataexplorer_suggestion_name_li-template').html()
 
         events:
-            'click .input_query': 'handle_keypress' # Click and not focus for webkit browsers
+            'click .CodeMirror': 'handle_keypress'
             'mousedown .suggestion_name_li': 'select_suggestion' # Keep mousedown to compete with blur on .input_query
             'mouseover .suggestion_name_li' : 'mouseover_suggestion'
             'mouseout .suggestion_name_li' : 'mouseout_suggestion'

            return @

        destroy: ->
            namespaces.off()


        destroy: =>
            @default_view.destroy()
            @result_view.destroy()


    class @ResultView extends Backbone.View
