       'tree-view:collapse-directory': => @show true
       'tree-view:recursive-collapse-directory': => @show true
       # respond to opening a file/directory
-      'tree-view:open-selected-entry': (event) => @openEntry event
-      'tree-view:open-selected-entry-right': (event) => @openEntry event
-      'tree-view:open-selected-entry-left': (event) => @openEntry event
-      'tree-view:open-selected-entry-up': (event) => @openEntry event
-      'tree-view:open-selected-entry-down': (event) => @openEntry event
-      'tree-view:open-selected-entry-in-pane-1': (event) => @openEntry event
-      'tree-view:open-selected-entry-in-pane-2': (event) => @openEntry event
-      'tree-view:open-selected-entry-in-pane-3': (event) => @openEntry event
-      'tree-view:open-selected-entry-in-pane-4': (event) => @openEntry event
-      'tree-view:open-selected-entry-in-pane-5': (event) => @openEntry event
-      'tree-view:open-selected-entry-in-pane-6': (event) => @openEntry event
-      'tree-view:open-selected-entry-in-pane-7': (event) => @openEntry event
-      'tree-view:open-selected-entry-in-pane-8': (event) => @openEntry event
-      'tree-view:open-selected-entry-in-pane-9': (event) => @openEntry event
+      'tree-view:open-selected-entry': @openEntry
+      'tree-view:open-selected-entry-right': @openEntry
+      'tree-view:open-selected-entry-left': @openEntry
+      'tree-view:open-selected-entry-up': @openEntry
+      'tree-view:open-selected-entry-down': @openEntry
+      'tree-view:open-selected-entry-in-pane-1': @openEntry
+      'tree-view:open-selected-entry-in-pane-2': @openEntry
+      'tree-view:open-selected-entry-in-pane-3': @openEntry
+      'tree-view:open-selected-entry-in-pane-4': @openEntry
+      'tree-view:open-selected-entry-in-pane-5': @openEntry
+      'tree-view:open-selected-entry-in-pane-6': @openEntry
+      'tree-view:open-selected-entry-in-pane-7': @openEntry
+      'tree-view:open-selected-entry-in-pane-8': @openEntry
+      'tree-view:open-selected-entry-in-pane-9': @openEntry
+
+    # respond to opening a file/directory
+    @subs.add treeViewEl, 'click', '.entry', @openEntry
 
   # enable/disable autohide behavior
   toggleEnabled: ->

      minimum: 1

  activate: (state) ->
    @subs = new SubAtom()
    # initialize this package when the tree-view package is activated
    @subs.add atom.packages.onDidActivatePackage (pkg) =>
      @initialize state, pkg if pkg.path.match /\/tree-view\/?$/i
    # initialize now if tree-view package is already enabled
    if atom.packages.isPackageActive 'tree-view'
      @initialize state, atom.packages.getActivatedPackage 'tree-view'

  deactivate: ->
    # cleanup the tree view element
    @disable() if treeViewEl?
    # dispose subscriptions
    @subs.dispose()


  enable: ->
    @enabled = true
    # add class for css
    treeViewEl.classList.add 'autohide', 'autohide-hover-events'
    # minimize the tree-view
    @applyHiddenWidth()
    @hide true

  # disable autohide behavior
  disable: ->
