What about to allow users to submit comment by just pressing CTRL + ENTER? It would be good addition and it helps me (And I bet a lot of other users, too) when submitting and browsing. IT can look like

    $('textarea.commentBox').keydown(function (e) {
        if (e.ctrlKey && e.keyCode == 13) {
            $(this).parent().children('comment-form-buttons').find('input:first').click();
        }
    });

asked 27 Aug '11, 10:07

genesis's gravatar image

genesis
951714
accept rate: 0%


The functionality to submit comment only with Ctrl + Enter has been added to the OSQA core in revision #1168: http://svn.osqa.net/changelog/OSQA/?cs=1168

Before sending a click event to the submit button we also check whether it's disabled.

link

answered 31 Aug '11, 09:01

Jordan's gravatar image

Jordan ♦♦
3.1k618
accept rate: 39%

great. Tell me something, these "diffs", it is what is SVN about?

(31 Aug '11, 09:25) genesis

Yep. This diffs display the source changes made at the repository: http://en.wikipedia.org/wiki/Diff

(31 Aug '11, 10:06) Jordan ♦♦
Your answer
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text](http://url.com/ "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Tags:

×144

Asked: 27 Aug '11, 10:07

Seen: 410 times

Last updated: 07 Oct '11, 04:48

powered by OSQA