Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Fix for listening only to Space Bar to check inputs and have it work …

…on Firefox & Safari. Closes #5
  • Loading branch information...
commit 47fdbce117d8fed1ceedeb9cf612e96d141bdd8a 1 parent 6efa76a
@arthurgouveia authored
Showing with 8 additions and 3 deletions.
  1. +8 −3 prettyCheckable.js
View
11 prettyCheckable.js
@@ -57,9 +57,14 @@
});
- $('div.prettycheckbox a, div.prettyradio a').on('keypress', function(e){
- $(this).click();
- e.preventDefault();
+ element.find('a').on('keyup', function(e){
+
+ if (e.keyCode === 32) {
+
+ $(this).click();
+
+ }
+
});
}
Please sign in to comment.
Something went wrong with that request. Please try again.