       kd.utils.defer  =>
         { appStorageController } = kd.singletons
         @appStorage = appStorageController.storage name, version or "1.0.1"
-
-    @bindKeyCombos()
-
-
-  bindKeyCombos: ->
-
-    @appKeyListener = new KDKeyboardListener
-    @appKeyMap      = new KDKeyboardMap { priority: 10 }
-
-    @appKeyListener
-      .addComboMap @appKeyMap
-
-    @registerDeclaredBindings()
-
-    kd.singletons.appManager.on 'AppIsBeingShown', (app) =>
-      @appKeyListener?.listen()  if app is this
-
-
-  registerAppKeys: (bindings = {}) ->
-    @appKeyMap.addCombo binding, fn  for own binding, fn of bindings
-    @appKeyListener.addComboMap @appKeyMap
-    @appKeyMap
 
 
   createContentDisplay:(models, callback)->

      @[cmd]?.call this, event
    else
      throw new Error "Unknown command: #{command}"


  registerDeclaredBindings: ->
    appName = @getOptions().name
    { keyBindings } = getAppOptions appName

    keyBindings?.forEach (b) =>
      @appKeyMap.addCombo b.binding, { global: b.global }, (ev) =>
        @handleCommand b.command, appName, ev

kd                 = require 'kd'
KDViewController   = kd.ViewController
getAppOptions      = require './util/getAppOptions'


