refactor(callout): rename variable for clarity in callout keymap

The variable `calloutBlock` was being assigned directly from `std.store.getBlock`, which could be confusing. Renamed to `parentBlock` first to better reflect its purpose before assignment to `calloutBlock`.
This commit is contained in:
zzj3720
2025-09-17 19:42:38 +08:00
parent a4711aad61
commit c89680cb55
@@ -29,8 +29,9 @@ export const CalloutKeymapExtension = KeymapExtension(std => {
if (!parent || !matchModels(parent, [CalloutBlockModel])) {
return false;
}
calloutBlock = std.store.getBlock(parent.id);
if (!calloutBlock) return false;
const parentBlock = std.store.getBlock(parent.id);
if (!parentBlock) return false;
calloutBlock = parentBlock;
}
ctx.get('keyboardState').raw.preventDefault();