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/write_form.php | |
| parent | f373c6e4723b9900f1ea7286488a6746a73c6cd1 (diff) | |
ctrl+enter to send note
Diffstat (limited to 'templates/note/write_form.php')
| -rw-r--r-- | templates/note/write_form.php | 3 |
1 files changed, 2 insertions, 1 deletions
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> |
