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 708bf08 commit 2f857f8Copy full SHA for 2f857f8
1 file changed
src/livecodes/core.ts
@@ -2834,12 +2834,10 @@ const handleCommandMenu = async () => {
2834
anotherShortcut = false;
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();
+ requestAnimationFrame(() => openCommandMenu());
2840
}
2841
- ninja.focus();
2842
- requestAnimationFrame(() => openCommandMenu());
2843
}, 500);
2844
};
2845
0 commit comments