diff options
| author | winter | 2025-03-22 17:19:30 +0000 |
|---|---|---|
| committer | winter | 2025-03-22 17:19:30 +0000 |
| commit | b535baf69b9a2525bc8a33b9c96460b84af8e6e2 (patch) | |
| tree | 8d86ea81feb5ea217bc3bc97900b428f569deca1 /templates/note/reply_form.php | |
| parent | f373c6e4723b9900f1ea7286488a6746a73c6cd1 (diff) | |
ctrl+enter to send note
Diffstat (limited to 'templates/note/reply_form.php')
| -rw-r--r-- | templates/note/reply_form.php | 3 |
1 files changed, 2 insertions, 1 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> |
