 Input = require './input'
 SearchInputElement = require './search-input'
 {
-  haveSomeNonEmptySelection
   highlightRanges
   getVisibleEditors
   matchScopes

    return if @operationStack.isProcessing()
    return unless @isInterestingEvent(event)

    if haveSomeNonEmptySelection(@editor)
      submode = swrap.detectVisualModeSubmode(@editor)
      if @isMode('visual', submode)
        @updateCursorsVisibility()
      else
        @activate('visual', submode)

    refreshHighlightSearch = =>
      @highlightSearch.refresh()
    @subscriptions.add @editor.onDidStopChanging(refreshHighlightSearch)

    @editorElement.classList.add(packageScope)
    if settings.get('startInInsertMode') or matchScopes(@editorElement, settings.get('startInInsertModeScopes'))
