Permalink
Browse files

Add reddit

  • Loading branch information...
1 parent 27291fb commit a61000164bc98394b1ed96fc3a397a055ca63e9c @dewski committed Jan 30, 2013
Showing with 5 additions and 0 deletions.
  1. +5 −0 reddit.com.js
View
@@ -0,0 +1,5 @@
+$(document).on('keydown', '.usertext-edit textarea', function(e) {
+ if(e.keyCode == 13 && (e.metaKey || e.ctrlKey)) {
+ $(this).parents('form').submit()
+ }
+})

0 comments on commit a610001

Please sign in to comment.