File tree Expand file tree Collapse file tree 1 file changed +11
-1
lines changed
Expand file tree Collapse file tree 1 file changed +11
-1
lines changed Original file line number Diff line number Diff line change @@ -115,6 +115,12 @@ export class EnterAction {
115115 const curNode = cursor ?. getCurNode ( ) ;
116116 if ( ! curNode ) return false ;
117117 if ( curNode instanceof Field && ! curNode . isClickable ( ) ) return false ;
118+ if (
119+ curNode instanceof RenderedConnection ||
120+ curNode instanceof WorkspaceSvg
121+ ) {
122+ return ! workspace . isReadOnly ( ) ;
123+ }
118124 // Returning true is sometimes incorrect for icons, but there's no API to check.
119125 return true ;
120126 }
@@ -131,19 +137,23 @@ export class EnterAction {
131137 if ( ! curNode ) return false ;
132138 if ( curNode instanceof Field ) {
133139 curNode . showEditor ( ) ;
140+ return true ;
134141 } else if ( curNode instanceof BlockSvg ) {
135142 if ( ! this . tryShowFullBlockFieldEditor ( curNode ) ) {
136143 showHelpHint ( workspace ) ;
137144 }
145+ return true ;
138146 } else if (
139147 curNode instanceof RenderedConnection ||
140148 curNode instanceof WorkspaceSvg
141149 ) {
142150 this . navigation . openToolboxOrFlyout ( workspace ) ;
151+ return true ;
143152 } else if ( curNode instanceof icons . Icon ) {
144153 curNode . onClick ( ) ;
154+ return true ;
145155 }
146- return true ;
156+ return false ;
147157 }
148158
149159 /**
You can’t perform that action at this time.
0 commit comments