mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-09-07 09:21:24 +08:00
refactor(editor): remove edgeless service in ai widgets (#10361)
This commit is contained in:
@@ -33,7 +33,6 @@ import { Bound, getCommonBound } from '@blocksuite/global/utils';
|
||||
|
||||
import { PageKeyboardManager } from '../keyboard/keyboard-manager.js';
|
||||
import type { EdgelessRootBlockComponent } from './edgeless-root-block.js';
|
||||
import { CopilotTool } from './gfx-tool/copilot-tool.js';
|
||||
import { LassoTool } from './gfx-tool/lasso-tool.js';
|
||||
import { ShapeTool } from './gfx-tool/shape-tool.js';
|
||||
import {
|
||||
@@ -326,9 +325,6 @@ export class EdgelessPageKeyboardManager extends PageKeyboardManager {
|
||||
if (currentTool instanceof LassoTool && currentTool.isSelecting) {
|
||||
currentTool.abort();
|
||||
}
|
||||
if (currentTool instanceof CopilotTool) {
|
||||
currentTool.abort();
|
||||
}
|
||||
|
||||
if (!this.rootComponent.service.selection.empty) {
|
||||
rootComponent.selection.clear();
|
||||
|
||||
Reference in New Issue
Block a user