Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Merge pull request #1 from jakebellacera/master

Adding stackoverflow.com
  • Loading branch information...
commit d8d836d49587b0525c6f1f77bb1d185ad3232e0b 2 parents 65c591d + bff6af0
@dewski authored
Showing with 6 additions and 0 deletions.
  1. +1 −0  README.md
  2. +5 −0 stackoverflow.com.js
View
1  README.md
@@ -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
5 stackoverflow.com.js
@@ -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();
+ }
+})
Please sign in to comment.
Something went wrong with that request. Please try again.