Permalink
Browse files

Merge pull request #1 from jakebellacera/master

Adding stackoverflow.com
  • Loading branch information...
2 parents 65c591d + bff6af0 commit d8d836d49587b0525c6f1f77bb1d185ad3232e0b @dewski committed Jan 31, 2013
Showing with 6 additions and 0 deletions.
  1. +1 −0 README.md
  2. +5 −0 stackoverflow.com.js
View
@@ -14,6 +14,7 @@ to making less kittens weep.
- [hackernews](https://github.com/dewski/cmd-enter/blob/master/news.ycombinator.com.js)
- [reddit](https://github.com/dewski/cmd-enter/blob/master/reddit.com.js)
- [twitter](https://github.com/dewski/cmd-enter/blob/master/twitter.com.js)
+- [stackoverflow](https://github.com/dewski/cmd-enter/blob/master/stackoverflow.com.js)
## Contributing
View
@@ -0,0 +1,5 @@
+$(document).on('keydown', '#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 d8d836d

Please sign in to comment.