diff options
Diffstat (limited to 'templates')
| -rw-r--r-- | templates/note/reply_form.php | 3 | ||||
| -rw-r--r-- | templates/note/write_form.php | 3 |
2 files changed, 4 insertions, 2 deletions
diff --git a/templates/note/reply_form.php b/templates/note/reply_form.php index 96375c1..6272c16 100644 --- a/templates/note/reply_form.php +++ b/templates/note/reply_form.php @@ -32,7 +32,8 @@ $selectedScope = $note->privacy->scope->value; <input type="text" id="replySummary-<?= $note->id ?>" name="summary" autocomplete="off" value="<?= $summaryText ?>" placeholder="<?= __('writeNote.summary.label') ?>"> <textarea id="replyContent-<?= $note->id ?>" name="content" required autocomplete="off" - placeholder="<?= __('writeReply.placeholder') ?>"></textarea> + placeholder="<?= __('writeReply.placeholder') ?>" + _="on keydown[ctrlKey and key is 'Enter'] set b to #replySubmitButton-<?= $note->id ?> then b.click()"></textarea> <?php call_template('formatting_hint'); ?> </div> <details> diff --git a/templates/note/write_form.php b/templates/note/write_form.php index f7b7cb9..647dcac 100644 --- a/templates/note/write_form.php +++ b/templates/note/write_form.php @@ -23,7 +23,8 @@ <input type="text" id="noteSummary" name="summary" autocomplete="off" placeholder="<?= __('writeNote.summary.label') ?>"> <textarea name="content" id="noteContent" required autocomplete="off" - placeholder="<?= __('writeNote.placeholder') ?>"></textarea> + placeholder="<?= __('writeNote.placeholder') ?>" + _="on keydown[ctrlKey and key is 'Enter'] set b to #writeNoteSubmitButton then b.click()"></textarea> <?php call_template('formatting_hint'); ?> </div> <details> |
