From bb3253fb2118a802d7c2b42725de524a3fa0b90b Mon Sep 17 00:00:00 2001 From: Jeremy Ruston Date: Tue, 19 Sep 2023 16:08:47 +0100 Subject: [PATCH] Focus editor when switching the preview on or off --- core/ui/EditorToolbar/preview.tid | 2 ++ 1 file changed, 2 insertions(+) diff --git a/core/ui/EditorToolbar/preview.tid b/core/ui/EditorToolbar/preview.tid index 611aad464..3c8cef505 100644 --- a/core/ui/EditorToolbar/preview.tid +++ b/core/ui/EditorToolbar/preview.tid @@ -15,9 +15,11 @@ shortcuts: ((preview)) <$reveal state=<> type="match" text="yes" tag="span"> {{$:/core/images/preview-open}} <$action-setfield $tiddler=<> $value="no"/> +<$action-sendmessage $message="tm-edit-text-operation" $param="focus-editor"/> <$reveal state=<> type="nomatch" text="yes" tag="span"> {{$:/core/images/preview-closed}} <$action-setfield $tiddler=<> $value="yes"/> +<$action-sendmessage $message="tm-edit-text-operation" $param="focus-editor"/>