Skip to content

Commit 7449d87

Browse files
fix: remove outline on focused nodes and reselect blocks
1 parent 4048576 commit 7449d87

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

core/gesture.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff 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 {

0 commit comments

Comments
 (0)