Skip to content

Commit

Permalink
Merge pull request #5 from nicklassandell/master
Browse files Browse the repository at this point in the history
Fixed bug that previously hijacked all keyboard buttons.
  • Loading branch information
adrian-em committed Apr 9, 2014
2 parents 6251aa3 + 1b779fd commit 063f58e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion stc/js/global.js
Expand Up @@ -3,7 +3,6 @@
if(location.href.match(/comments\/r\//)) {

$(document).on('keydown', function(e) {
e.preventDefault();

// Up key, get previous root comment
if(e.which == 38) {
Expand All @@ -16,6 +15,7 @@

// Did we find a comment?
if(typeof next == 'object') {
e.preventDefault();

// Get top offset of found comment
var offset = next.offset().top;
Expand Down

0 comments on commit 063f58e

Please sign in to comment.