Skip to content

Commit 9c236bd

Browse files
committed
fix: Fix compatibility with renamed CommentBarButtons.
1 parent f19a4e9 commit 9c236bd

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

src/actions/enter.ts

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -130,7 +130,7 @@ export class EnterAction {
130130
if (
131131
curNode instanceof BlockSvg ||
132132
curNode instanceof icons.Icon ||
133-
curNode instanceof comments.CommentIcon ||
133+
curNode instanceof comments.CommentBarButton ||
134134
curNode instanceof comments.RenderedWorkspaceComment
135135
) {
136136
return true;
@@ -171,11 +171,10 @@ export class EnterAction {
171171
cursor?.in();
172172
});
173173
return true;
174-
} else if (curNode instanceof comments.CommentIcon) {
174+
} else if (curNode instanceof comments.CommentBarButton) {
175175
curNode.performAction();
176176
return true;
177177
} else if (curNode instanceof comments.RenderedWorkspaceComment) {
178-
curNode.setEditable(true);
179178
curNode.setCollapsed(false);
180179
getFocusManager().focusNode(curNode.getEditorFocusableNode());
181180
return true;

0 commit comments

Comments
 (0)