File tree Expand file tree Collapse file tree 2 files changed +5
-5
lines changed
Expand file tree Collapse file tree 2 files changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -155,8 +155,7 @@ export namespace ContextMenuRegistry {
155155 block ?: BlockSvg ;
156156 workspace ?: WorkspaceSvg ;
157157 comment ?: RenderedWorkspaceComment ;
158- // TODO(#8839): Remove any once Block, etc. implement IFocusableNode
159- focusedNode ?: IFocusableNode | any ;
158+ focusedNode ?: IFocusableNode ;
160159 }
161160
162161 /**
Original file line number Diff line number Diff line change @@ -253,18 +253,19 @@ export class ShortcutRegistry {
253253 ! shortcut ||
254254 ( shortcut . preconditionFn &&
255255 ! shortcut . preconditionFn ( workspace , {
256- focusedNode : getFocusManager ( ) . getFocusedNode ( ) ,
256+ focusedNode : getFocusManager ( ) . getFocusedNode ( ) ?? undefined ,
257257 } ) )
258258 ) {
259259 continue ;
260260 }
261261 // If the key has been handled, stop processing shortcuts.
262262 if (
263263 shortcut . callback ?.( workspace , e , shortcut , {
264- focusedNode : getFocusManager ( ) . getFocusedNode ( ) ,
264+ focusedNode : getFocusManager ( ) . getFocusedNode ( ) ?? undefined ,
265265 } )
266- )
266+ ) {
267267 return true ;
268+ }
268269 }
269270 return false ;
270271 }
You can’t perform that action at this time.
0 commit comments