Skip to content

Instantly share code, notes, and snippets.

@consideRatio
Created January 31, 2014 11:18
Show Gist options
  • Select an option

  • Save consideRatio/8730253 to your computer and use it in GitHub Desktop.

Select an option

Save consideRatio/8730253 to your computer and use it in GitHub Desktop.
didInsertElement : function () {
// Hook to
this.get('controller').on('answerRight', $.proxy(this.answerRight, this));
this.get('controller').on('answerWrong', $.proxy(this.answerWrong, this));
// Focuses the start button field
$('#sse').focus();
// Relates the enter button with the add source button
$('html').keyup(function(e){
console.log(this, App);
if(e.which===27) // Escape -> Start/Stop/ExitReview
if (this.get('controller.isNotStopped'))
$('#escsse').click();
console.log(e.which);
})
....
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment