From 03f047d2a65b54cd0149bf57a1eff58f6c775ca6 Mon Sep 17 00:00:00 2001 From: CTomlyn <tomlyn@us.ibm.com> Date: Mon, 16 Dec 2024 10:37:08 -0800 Subject: [PATCH] #2274 Document enableFocusOnMount config field Signed-off-by: CTomlyn <tomlyn@us.ibm.com> --- docs/pages/03.02.01-canvas-config.md | 3 +++ 1 file changed, 3 insertions(+) diff --git a/docs/pages/03.02.01-canvas-config.md b/docs/pages/03.02.01-canvas-config.md index a8fa1be5b..2bf8fa9e7 100644 --- a/docs/pages/03.02.01-canvas-config.md +++ b/docs/pages/03.02.01-canvas-config.md @@ -216,6 +216,9 @@ This is a boolean. The default is false. When set to true, Common Canvas will ov ## Canvas Content +#### **enableFocusOnMount** +This is a boolean. The default is true. When set to true, the keyboard focus will automatically be set on the flow editor when Common Canvas first appears. This means, keyboard shortcut operations on the flow editor, and it contents, will be executed without the user having to click on the flow editor to get focus to be moved there. If set to false, Common Canvas makes no change to the focus so the application can set the focus wherever it wants. + #### **emptyCanvasContent** This is a JSX or HTML snippet that contains some text or any elements (such as an image) that you want to display when the canvas is empty, that is, when it doesn't have any nodes or comments. The default behavior if this config parameter is not provided is that Common Canvas will display an image and message saying: "Your flow is empty!".