I defined the shortcut ctrl+u in the plugin to insert block, but every time I press ctrl+u,insertblock is executed twice and two strings are inserted, is there any way to solve it?
const shortcutKey_dupBlock = "ctrl+u";
logseq.App.registerCommandShortcut(
{
binding: shortcutKey_dupBlock,
},
async ({ uuid }) => {
await logseq.Editor.insertBlock(uuid, "testing", {before: true,isPageBlock:true });
});