File tree Expand file tree Collapse file tree 2 files changed +3
-0
lines changed Expand file tree Collapse file tree 2 files changed +3
-0
lines changed Original file line number Diff line number Diff line change @@ -52,6 +52,7 @@ export class CommentEditor implements IFocusableNode {
5252 dom . HTML_NS ,
5353 'textarea' ,
5454 ) as HTMLTextAreaElement ;
55+ this . textArea . setAttribute ( 'tabindex' , '-1' ) ;
5556 dom . addClass ( this . textArea , 'blocklyCommentText' ) ;
5657 dom . addClass ( this . textArea , 'blocklyTextarea' ) ;
5758 dom . addClass ( this . textArea , 'blocklyText' ) ;
Original file line number Diff line number Diff line change @@ -401,6 +401,8 @@ export class LineCursor extends Marker {
401401 block . workspace . scrollBoundsIntoView (
402402 block . getBoundingRectangleWithoutChildren ( ) ,
403403 ) ;
404+ } else if ( newNode instanceof RenderedWorkspaceComment ) {
405+ newNode . workspace . scrollBoundsIntoView ( newNode . getBoundingRectangle ( ) ) ;
404406 }
405407 }
406408
You can’t perform that action at this time.
0 commit comments