fix
This commit is contained in:
@ -116,19 +116,26 @@ export const installInterfaceLogic = (app: Editor) => {
|
|||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
app.interface.universe_viewer.addEventListener("input", () => {
|
app.interface.universe_viewer.addEventListener("keydown", (event: KeyboardEvent) => {
|
||||||
let content = app.interface.universe_viewer.value as string;
|
if (event.key === "Enter") {
|
||||||
content = content.trim();
|
let content = app.interface.universe_viewer.value.trim();
|
||||||
if (content.length > 2 && content.length < 40) {
|
console.log("boum")
|
||||||
if (content !== app.selected_universe) {
|
|
||||||
Object.defineProperty(app.universes, content,
|
if (content.length > 2 && content.length < 40) {
|
||||||
Object.getOwnPropertyDescriptor(app.universes, app.selected_universe));
|
if (content !== app.selected_universe) {
|
||||||
delete app.universes[app.selected_universe];
|
Object.defineProperty(app.universes, content,
|
||||||
|
Object.getOwnPropertyDescriptor(app.universes, app.selected_universe));
|
||||||
|
delete app.universes[app.selected_universe];
|
||||||
|
}
|
||||||
|
|
||||||
|
app.selected_universe = content;
|
||||||
|
loadUniverse(app, app.selected_universe);
|
||||||
|
app.interface.universe_viewer.placeholder = content;
|
||||||
|
app.interface.universe_viewer.value = '';
|
||||||
}
|
}
|
||||||
app.selected_universe = content.trim();
|
|
||||||
loadUniverse(app, app.selected_universe)
|
|
||||||
}
|
}
|
||||||
})
|
});
|
||||||
|
|
||||||
|
|
||||||
app.interface.audio_nudge_range.addEventListener("input", () => {
|
app.interface.audio_nudge_range.addEventListener("input", () => {
|
||||||
app.clock.nudge = parseInt(
|
app.clock.nudge = parseInt(
|
||||||
|
|||||||
Reference in New Issue
Block a user