Skip to content

Commit

Permalink
Refresh routes by pressing F5 or Ctrl+R. Close #85
Browse files Browse the repository at this point in the history
  • Loading branch information
bastimeyer committed May 5, 2015
1 parent 4d3a77a commit 97bbbb9
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion src/app/views/ApplicationView.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,16 @@ define([
},

didInsertElement: function() {
this._super();
guiSelectable();
guiSmoothscroll();

document.documentElement.addEventListener( "keyup", function( e ) {
var f5 = e.keyCode === 116;
var ctrlR = e.keyCode === 82 && e.ctrlKey === true;
if ( f5 || ctrlR ) {
this.get( "controller" ).send( "refresh" );
}
}.bind( this ), false );
}
});

Expand Down

0 comments on commit 97bbbb9

Please sign in to comment.