             # we didn't end up dragging, select the item
             selection.selectOnly sel_name, key
             refreshSelection()
-    else if event.button = 2
+    else if event.which = 3
       return if event.altKey
       event.preventDefault()
 

    renderChat()
  $chat_name_input.on 'keydown', (event) ->
    event.stopPropagation()
    if event.keyCode is 27
      # cancel
      done = true
    else if event.keyCode is 13
      # accept
      done = true
      setUserName $(event.target).val()

            # we didn't end up dragging, select the item
            selection.selectOnly 'playlist', track_id
            refreshSelection()
    else if event.which is 3
      return if event.altKey
      event.preventDefault()

