 
 class AccountEditShortcuts extends kd.View
 
-  constructor: (options={}, data) ->
-
-    super options, data
+  INSTRUCTIONS_CSS_CLASS = 'instructions'
+  INSTRUCTIONS_PARTIAL = 'To change a shortcut, click the key combination, then type the new keys.'
+  RESTORE_BUTTON_TITLE = 'Restore Defaults'
+  RESTORE_BUTTON_CLASS_NAME = 'solid light-gray medium restore'
+  RESTORE_CONFIRM_TEXT = 'Are you sure you want to restore the default shortcuts?'
 
 
   destroy: ->


    shortcuts.pause()

    # exclude hidden shortcuts
    predicate = (model) -> true unless model.options and model.options.hidden
    paneData =
      shortcuts.toCollection(predicate).map (collection) ->
        name: collection.title
        collection: collection
        cssClass: 'pane'

    @addSubView new kd.View
      cssClass: 'instructions'
      partial: 'To change a shortcut, click the key combination, then type the new keys.'

    @addSubView @tabView = new kd.TabView
      tabClass: Pane
      paneData: paneData
      hideHandleCloseIcons: yes
      enableMoveTabHandle: no

    @tabView.on 'PaneDidShow', recorder.cancel

    @addSubView new kd.ButtonView
      title: 'Restore Defaults'
      style: 'solid light-gray medium restore'
      callback: @bound 'restoreDefaults'

    @tabView.showPaneByIndex 0


  restoreDefaults: ->

    return  unless confirm RESTORE_CONFIRM_TEXT
    kd.getSingleton('shortcuts').restore()


