Adding stackoverflow.com #1

Merged
merged 2 commits into from Jan 31, 2013
Jump to file or symbol
Failed to load files and symbols.
+6 −0
Split
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();
+ }
+})