diff --git a/src/livecodes/core.ts b/src/livecodes/core.ts index 554041089f..7b26030ccf 100644 --- a/src/livecodes/core.ts +++ b/src/livecodes/core.ts @@ -2835,11 +2835,10 @@ const handleCommandMenu = async () => { setTimeout(async () => { if (anotherShortcut) return; // eslint-disable-next-line no-underscore-dangle - if (ninja.__visible == null) { - await loadNinjaKeys(); + if (ninja?.__visible === false || ninja?.data?.length === 0) { + ninja.focus(); + requestAnimationFrame(() => openCommandMenu()); } - ninja.focus(); - requestAnimationFrame(() => openCommandMenu()); }, 500); };