```coffeescript
# Place all the behaviors and hooks related to the matching controller here.
# All this logic will automatically be available in application.js.
# You can use CoffeeScript in this file: http://coffeescript.org/

jQuery ->
  $(document).keydown (event) ->
    if $("#shortcuts_available").length
      action = null
      target = $(event.target)
      if target.is("input") || target.is("textarea")
        if event.which == 27  # Escape key
          action = ->
            target.blur()
      else
        action = switch event.which
          when 'A'.charCodeAt(0) then "/transactions/all"
          when 'L'.charCodeAt(0) then "/transactions"
          when 'N'.charCodeAt(0) then "/transactions/new"
          when 'R'.charCodeAt(0) then "/sellers/revenue"
          when 'S'.charCodeAt(0) then "/sellers"
          when 'E'.charCodeAt(0) then ->
            if $("#seller_list").length
              text = prompt "Seller number:"
              if text?
                number = window.get_seller_id(text)
                if number?
                  window.location.href = "/sellers/" + number + "/edit"
                else
                  alert("Seller number not found: " + text)

      if action
        event.stopPropagation()
        if typeof action == 'string'
          window.location.href = action
        else
          action()
  $("#accordion").accordion({ heightStyle: "content", collapsible: true })

@activate_login_form = ->
  $("#login_form").removeClass 'hidden'
  $("#login_placeholder").addClass 'hidden'
```

Disable javascript for deactivated accordion extension
user
```coffeescript
# Place all the behaviors and hooks related to the matching controller here.
# All this logic will automatically be available in application.js.
# You can use CoffeeScript in this file: http://coffeescript.org/

jQuery ->
  $(document).keydown (event) ->
    if $("#shortcuts_available").length
      action = null
      target = $(event.target)
      if target.is("input") || target.is("textarea")
        if event.which == 27  # Escape key
          action = ->
            target.blur()
      else
        action = switch event.which
          when 'A'.charCodeAt(0) then "/transactions/all"
          when 'L'.charCodeAt(0) then "/transactions"
          when 'N'.charCodeAt(0) then "/transactions/new"
          when 'R'.charCodeAt(0) then "/sellers/revenue"
          when 'S'.charCodeAt(0) then "/sellers"
          when 'E'.charCodeAt(0) then ->
            if $("#seller_list").length
              text = prompt "Seller number:"
              if text?
                number = window.get_seller_id(text)
                if number?
                  window.location.href = "/sellers/" + number + "/edit"
                else
                  alert("Seller number not found: " + text)

      if action
        event.stopPropagation()
        if typeof action == 'string'
          window.location.href = action
        else
          action()
#  $("#accordion").accordion({ heightStyle: "content", collapsible: true })

@activate_login_form = ->
  $("#login_form").removeClass 'hidden'
  $("#login_placeholder").addClass 'hidden'
```
assistant