We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2f33035 commit bcaf238Copy full SHA for bcaf238
src/actions/enter.ts
@@ -114,15 +114,16 @@ export class EnterAction {
114
const cursor = workspace.getCursor();
115
const curNode = cursor?.getCurNode();
116
if (!curNode) return false;
117
- if (curNode instanceof Field && !curNode.isClickable()) return false;
+ if (curNode instanceof Field) return curNode.isClickable();
118
if (
119
curNode instanceof RenderedConnection ||
120
curNode instanceof WorkspaceSvg
121
) {
122
return !workspace.isReadOnly();
123
}
124
// Returning true is sometimes incorrect for icons, but there's no API to check.
125
- return true;
+ if (curNode instanceof icons.Icon) return true;
126
+ return false;
127
128
129
/**
0 commit comments