We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
CommentBarButton
1 parent 8a578f5 commit c037e7dCopy full SHA for c037e7d
1 file changed
core/keyboard_nav/line_cursor.ts
@@ -14,6 +14,7 @@
14
*/
15
16
import {BlockSvg} from '../block_svg.js';
17
+import {CommentBarButton} from '../comments/comment_bar_button.js';
18
import {RenderedWorkspaceComment} from '../comments/rendered_workspace_comment.js';
19
import {Field} from '../field.js';
20
import {getFocusManager} from '../focus_manager.js';
@@ -403,6 +404,9 @@ export class LineCursor extends Marker {
403
404
);
405
} else if (newNode instanceof RenderedWorkspaceComment) {
406
newNode.workspace.scrollBoundsIntoView(newNode.getBoundingRectangle());
407
+ } else if (newNode instanceof CommentBarButton) {
408
+ const comment = newNode.getParentComment();
409
+ comment.workspace.scrollBoundsIntoView(comment.getBoundingRectangle());
410
}
411
412
0 commit comments