Users running a non-download version of Vanilla (pulled from github), on branch release/2019.016 or master from the last 2 weeks should upgrade to release/2019.017 or latest master for security reasons. Downloaded official open sources releases are not affected.
Please upgrade here. These earlier versions are no longer being updated and have security issues.

CmdReturnSubmit for Saving Comments

This discussion is related to the CmdReturnSubmit addon.

I've been banging away at this a bit and could use some help, or some fresh eyes.

I want to add the functionality to the CmdReturnSubmit plugin to let a user press Cmd/Ctrl and Return to submit an edited comment, as if they had clicked the 'Save Comment' button.

How do I specify which textarea (id='Form_Body' in both cases) to attach the event to so that I can add something like the following code to class.cmdreturnsubmit.plugin.php?

    if((event.ctrlKey||event.metaKey) && ((event.keyCode == 0xA)||(event.keyCode == 0xD)))


Sign In or Register to comment.