Skip to content

Commit bcaf238

Browse files
committed
Change default for handling enter to false.
1 parent 2f33035 commit bcaf238

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/actions/enter.ts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -114,15 +114,16 @@ export class EnterAction {
114114
const cursor = workspace.getCursor();
115115
const curNode = cursor?.getCurNode();
116116
if (!curNode) return false;
117-
if (curNode instanceof Field && !curNode.isClickable()) return false;
117+
if (curNode instanceof Field) return curNode.isClickable();
118118
if (
119119
curNode instanceof RenderedConnection ||
120120
curNode instanceof WorkspaceSvg
121121
) {
122122
return !workspace.isReadOnly();
123123
}
124124
// Returning true is sometimes incorrect for icons, but there's no API to check.
125-
return true;
125+
if (curNode instanceof icons.Icon) return true;
126+
return false;
126127
}
127128

128129
/**

0 commit comments

Comments
 (0)