Allow Ctrl key for submitting posts, too

Closes #276.
This commit is contained in:
Franz Liedke 2015-08-29 17:09:14 +02:00
parent 4033319ed0
commit a04acca92e

View File

@ -52,10 +52,13 @@ export default class TextEditor extends Component {
configTextarea(element, isInitialized) {
if (isInitialized) return;
$(element).bind('keydown', 'meta+return', () => {
var handler = () => {
this.onsubmit();
m.redraw();
});
};
$(element).bind('keydown', 'meta+return', handler);
$(element).bind('keydown', 'ctrl+return', handler);
}
/**