mirror of
https://github.com/google/blockly.git
synced 2026-06-11 13:45:14 +02:00
fix: Fix loss of focus when deleting blocks via context menu
This commit is contained in:
@@ -545,6 +545,7 @@ export function registerDelete() {
|
||||
},
|
||||
callback(scope: Scope) {
|
||||
if (scope.block) {
|
||||
getFocusManager().focusNode(scope.block);
|
||||
scope.block.checkAndDelete();
|
||||
}
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user