File tree Expand file tree Collapse file tree 1 file changed +3
-0
lines changed
Expand file tree Collapse file tree 1 file changed +3
-0
lines changed Original file line number Diff line number Diff line change @@ -291,6 +291,7 @@ export class Gesture {
291291 this . startBlock = null ;
292292 this . targetBlock = this . flyout . createBlock ( this . targetBlock ) ;
293293 getFocusManager ( ) . focusNode ( this . targetBlock ) ;
294+ common . setSelected ( this . targetBlock ) ;
294295 return true ;
295296 }
296297 return false ;
@@ -767,6 +768,7 @@ export class Gesture {
767768 if ( ! this . startBlock && ! this . startBubble && ! this . startComment ) {
768769 // Ensure the workspace is selected if nothing else should be.
769770 getFocusManager ( ) . focusNode ( ws ) ;
771+ common . setSelected ( null ) ;
770772 } else if ( this . startBlock ) {
771773 getFocusManager ( ) . focusNode ( this . startBlock ) ;
772774 }
@@ -1031,6 +1033,7 @@ export class Gesture {
10311033 // If the gesture already went through a bubble, don't set the start block.
10321034 if ( ! this . startBlock && ! this . startBubble ) {
10331035 this . startBlock = block ;
1036+ common . setSelected ( this . startBlock ) ;
10341037 if ( block . isInFlyout && block !== block . getRootBlock ( ) ) {
10351038 this . setTargetBlock ( block . getRootBlock ( ) ) ;
10361039 } else {
You can’t perform that action at this time.
0 commit comments