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.
2 parents 708bf08 + 0c25761 commit 7acda7fCopy full SHA for 7acda7f
1 file changed
src/livecodes/core.ts
@@ -2835,11 +2835,10 @@ const handleCommandMenu = async () => {
2835
setTimeout(async () => {
2836
if (anotherShortcut) return;
2837
// eslint-disable-next-line no-underscore-dangle
2838
- if (ninja.__visible == null) {
2839
- await loadNinjaKeys();
+ if (ninja?.__visible === false || ninja?.data?.length === 0) {
+ ninja.focus();
2840
+ requestAnimationFrame(() => openCommandMenu());
2841
}
- ninja.focus();
2842
- requestAnimationFrame(() => openCommandMenu());
2843
}, 500);
2844
};
2845
0 commit comments