Permalink
Browse files

in the comment box, j/k/left/right should be ignored; this is a bug f…

…ound by jarad
  • Loading branch information...
1 parent 28f516a commit f65e3addc0d9de7c30ab9bfbc3ee75b075d200fb @yihui committed Oct 4, 2012
Showing with 1 addition and 0 deletions.
  1. +1 −0 _layouts/post.html
View
@@ -38,6 +38,7 @@
<script type="text/javascript">
$(function(){
$(document).keydown(function(e) {
+ if (e.target.nodeName.toUpperCase() != 'BODY') return;
var url = false;
if (e.which == 37 || e.which == 74) { // Left arrow and J
{% if page.previous %}

0 comments on commit f65e3ad

Please sign in to comment.