Skip to content

Commit 5a6efde

Browse files
authored
fix: Allow enter to be handled on blocks (#608)
1 parent 97ce1c9 commit 5a6efde

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/actions/enter.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -121,6 +121,7 @@ export class EnterAction {
121121
) {
122122
return !workspace.isReadOnly();
123123
}
124+
if (curNode instanceof BlockSvg) return true;
124125
// Returning true is sometimes incorrect for icons, but there's no API to check.
125126
if (curNode instanceof icons.Icon) return true;
126127
return false;

0 commit comments

Comments
 (0)