Added code block export image extension

This commit is contained in:
2025-12-22 00:13:55 +08:00
parent fa134d31d6
commit c47f7de5b8
12 changed files with 463 additions and 68 deletions

View File

@@ -103,6 +103,7 @@ const (
HistoryRedo KeyBindingName = "historyRedo" // 重做
HistoryUndoSelection KeyBindingName = "historyUndoSelection" // 撤销选择
HistoryRedoSelection KeyBindingName = "historyRedoSelection" // 重做选择
CopyBlockImage KeyBindingName = "copyBlockImage" // 复制块为图片
)
const defaultExtension = "editor"
@@ -282,6 +283,14 @@ func NewDefaultKeyBindings() []KeyBinding {
Enabled: true,
PreventDefault: true,
},
{
Name: CopyBlockImage,
Type: Standard,
Key: "Mod-Shift-Alt-C",
Extension: BlockImage,
Enabled: true,
PreventDefault: true,
},
// 代码折叠相关
{