Shortcuts

Implement shortcuts mentioned in #55 
comment is no longer true. It will wait until user press a key or unfocus current row 

----- Original Message -----

> From: "David Mason" <notifications@github.com>
> To: "zanata/zanata-spa" <zanata-spa@noreply.github.com>
> Cc: "Patrick Huang" <pahuang@redhat.com>
> Sent: Thursday, November 6, 2014 2:47:58 PM
> Subject: Re: [zanata-spa] Shortcuts (#85)

> In app/editor/EditorShortcuts.js:
> > +        event.preventDefault();
> > +        var phrase = editorShortcuts.selectedTUCtrl.getPhrase();
> > +        EventService.emitEvent(EventService.EVENT.SAVE_TRANSLATION,
> > +          {
> > +            'phrase': phrase,
> > +            'status': phrase.status,
> > +            'locale': $stateParams.localeId,
> > +            'docId': $stateParams.docId
> > +          });
> > +      }
> > +    }
> > +
> > +    /**
> > +     * This is to mimic sequence shortcut.
> > +     * i.e. press ctlr-shift-s then within 1 second, press 'n' to save as
> > +     * 'needs work'.

> 1 second sounds too fast, we might get a lot more usability by making it a
> bit longer.

> —
> Reply to this email directly or view it on GitHub .