Change keyboard shortcut context

closes #4247
- added scope to every shortcut, the scope of shortcut is default to
  'default'
- add shortcut `enter` to modal which confirm the modal
- shortcut `enter` and `esc` now have scope 'modal'
- when lunch a modal, scope is switching to 'modal', and set back to
  'default' when close
- shortcut `enter` now confirm the dialog without conflicting with route
  shortcuts
ES6!? Baby g, i'm just talking about colons having a space preceding them,
looked weird to me is all

On Fri, Oct 10, 2014 at 8:53 AM, Harry Wolff <notifications@github.com>
wrote:

> In core/client/routes/application.js:
>
> > @@ -9,9 +10,10 @@ var ApplicationRoute = Ember.Route.extend(SimpleAuth.ApplicationRouteMixin, Shor
> >      },
> >
> >      shortcuts: {
> > -        'esc': 'closePopups'
> > +        'esc' : {action : 'closePopups', scope : 'modal'},
>
> JSCS doesn't yet support ES6 syntax :(
>
> —
> Reply to this email directly or view it on GitHub
> <https://github.com/TryGhost/Ghost/pull/4265/files#r18710407>.
>