Skip to content

Commit

Permalink
RWS: close details window when ESC is pressed
Browse files Browse the repository at this point in the history
  • Loading branch information
lucach authored and lw committed Mar 3, 2014
1 parent 29e4588 commit 2ec5e6c
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions cmsranking/static/UserDetail.js
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,12 @@ var UserDetail = new function () {
self.hide();
});

$(document).keyup(function (event) {
if (event.keyCode == 27) { // ESC key
self.hide();
}
});

self.f_name_label = $('#UserDetail_f_name');
self.l_name_label = $('#UserDetail_l_name');
self.team_label = $('#UserDetail_team');
Expand Down

0 comments on commit 2ec5e6c

Please sign in to comment.