We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent dfd5659 commit e3d17beCopy full SHA for e3d17be
2 files changed
core/comments/comment_editor.ts
@@ -52,6 +52,7 @@ export class CommentEditor implements IFocusableNode {
52
dom.HTML_NS,
53
'textarea',
54
) as HTMLTextAreaElement;
55
+ this.textArea.setAttribute('tabindex', '-1');
56
dom.addClass(this.textArea, 'blocklyCommentText');
57
dom.addClass(this.textArea, 'blocklyTextarea');
58
dom.addClass(this.textArea, 'blocklyText');
core/keyboard_nav/line_cursor.ts
@@ -401,6 +401,8 @@ export class LineCursor extends Marker {
401
block.workspace.scrollBoundsIntoView(
402
block.getBoundingRectangleWithoutChildren(),
403
);
404
+ } else if (newNode instanceof RenderedWorkspaceComment) {
405
+ newNode.workspace.scrollBoundsIntoView(newNode.getBoundingRectangle());
406
}
407
408
0 commit comments