   debug:
     config: false
     selector: false
+    select: false
 
   constructor: (@config, element = null) ->
     @element = null

    search = (selector) ->
      if all then element.querySelectorAll selector else element.querySelector selector
    try
      Common.log "#{selector} #{all}:" if @debug.selector
      Common.log "  #{search selector}" if @debug.selector
      search selector
    catch
      console.error "bad CSS selector: #{selector}"

      "visible"

  selectElement: (element, shouldScroll = true) ->
    Common.log "selectElement #{element?} #{shouldScroll}" if @debug.select
    Common.log "              #{element == @element} (expect false for a new element)" if @debug.select
    if element
      @clearSelection()
      @element = document.activeElement = element
