From 40d96121ba23c531e8c6370fc49d0a59678609f0 Mon Sep 17 00:00:00 2001 From: Matt Hillsdon Date: Fri, 20 Jun 2025 14:24:37 +0100 Subject: [PATCH 1/2] test: allow testing of workspace comments --- test/index.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/test/index.ts b/test/index.ts index 4560e471..4edf15cf 100644 --- a/test/index.ts +++ b/test/index.ts @@ -92,6 +92,7 @@ function createWorkspace(): Blockly.WorkspaceSvg { const workspace = Blockly.inject(blocklyDiv, injectOptions); new KeyboardNavigation(workspace); + Blockly.ContextMenuItems.registerCommentOptions(); registerRunCodeShortcut(); // Disable blocks that aren't inside the setup or draw loops. From c44dfd3c56491fe6697f76c231f451b56a23ccb7 Mon Sep 17 00:00:00 2001 From: Matt Hillsdon Date: Fri, 20 Jun 2025 14:50:08 +0100 Subject: [PATCH 2/2] test: show the delete icon for comments --- test/index.html | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/test/index.html b/test/index.html index 99705d65..f6e1edcd 100644 --- a/test/index.html +++ b/test/index.html @@ -99,6 +99,10 @@ box-sizing: border-box; } + .blocklyDeleteIcon { + display: block; + } + /* Blocks, connections and fields. */ .blocklyKeyboardNavigation .blocklyActiveFocus:is(.blocklyPath, .blocklyHighlightedConnectionPath),