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
Yep.

On Fri, Oct 10, 2014 at 10:59 AM, Matt Enlow <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'},
>
> Oh! Thanks, i'm with it now. In other words, only the server's getting
> that linting
> … <#148fa922330149bb_>
> On Oct 10, 2014 8:55 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'}, When you point JSSC to ES6 style code it
> errors out as it doesn't understand the export keyword, and as such nothing
> else gets linted. — Reply to this email directly or view it on GitHub <
> https://github.com/TryGhost/Ghost/pull/4265/files#r18710513>.
>
> —
> Reply to this email directly or view it on GitHub
> <https://github.com/TryGhost/Ghost/pull/4265/files#r18710738>.
>