fix(editor): can not delete code block with delete keyboard (#11988)

This commit is contained in:
doufa
2025-05-06 16:14:41 +08:00
committed by GitHub
parent 24f52ed649
commit 1994dd6d9d
2 changed files with 34 additions and 2 deletions

View File

@@ -332,7 +332,7 @@ export class CodeBlockComponent extends CaptionedBlockComponent<CodeBlockModel>
return true;
},
Delete: () => {
return true;
return;
},
Enter: () => {
this.doc.captureSync();