title: Ember keyboard shortcuts
body: <p>I have an ember application to which I want to add keyboard shortcuts. A specific key combination should work regardless of where the user is within the app, that is, the key press should trigger an action regardless of the controller, view or the route within which the user is at any point. In order to do this, I will have to listen to <code>keyPress</code> event in my app. I tried using a mixin that will be mixed in to the <code>ApplicationView</code>, unfortunately, the <code>keyPress</code> event will only be propagated if a view has focus and application view will not always have focus. I tried:</p>
  
  <pre><code>App.ApplicationView = Em.View.extend(App.KeyBoardShortcutsMixin,{
    didInsertElement: function() {
      this.$().focus();
    } 
  });
  </code></pre>
  
  <p>This will not accomplish my purpose because, the <code>keyPress</code> event works fine before the user interacts with the app, but once this view loses focus, it will no longer fire. Since I have a large number of views, it seems wasteful to mixin the view mixin into every single view that might be created in the app. How can I add this functionality in a clean way?</p>