Skip to content
This repository was archived by the owner on May 12, 2021. It is now read-only.

Commit 573c274

Browse files
Refocus textArea after cancelled publication.
When I hit cancel, I usually want to keep editing. This small change puts the focus back to the textArea when I hit cancel, so that I can just keep typing right away.
1 parent 81f7b47 commit 573c274

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

lib/depject/message/html/compose.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -311,6 +311,8 @@ exports.create = function (api) {
311311
contentWarningInput.value = ''
312312
refreshHasContent()
313313
save()
314+
} else {
315+
textArea.focus()
314316
}
315317
if (cb) cb(null, msg)
316318
}

0 commit comments

Comments
 (0)