mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-07-15 00:56:26 +08:00
fix(editor): can not delete code block with delete keyboard (#11988)
This commit is contained in:
@@ -332,7 +332,7 @@ export class CodeBlockComponent extends CaptionedBlockComponent<CodeBlockModel>
|
||||
return true;
|
||||
},
|
||||
Delete: () => {
|
||||
return true;
|
||||
return;
|
||||
},
|
||||
Enter: () => {
|
||||
this.doc.captureSync();
|
||||
|
||||
Reference in New Issue
Block a user