Permalink
Browse files

Adding stackoverflow.com

  • Loading branch information...
1 parent 5103fe5 commit 22516e2f87c983be103b0fac1a27dc70776b1e84 @jakebellacera jakebellacera committed Jan 30, 2013
Showing with 5 additions and 0 deletions.
  1. +5 −0 stackoverflow.com.js
View
@@ -0,0 +1,5 @@
+$(document).on('keydown', 'textarea#wmd-input, form[id^="add-comment-"] textarea', function(e) {
+ if(e.keyCode == 13 && (e.metaKey || e.ctrlKey)) {
+ $(this).parents('form').submit();
+ }
+})

0 comments on commit 22516e2

Please sign in to comment.