Added format option to actors, exposing age and gender.

This commit is contained in:
2025-11-17 23:42:24 +01:00
parent 0435472489
commit 0b5ce620d6
4 changed files with 69 additions and 40 deletions

View File

@@ -37,6 +37,7 @@
class="input edit"
@input="update"
@blur="save(false)"
@keydown.tab.prevent="indent"
/>
<textarea
@@ -227,6 +228,11 @@ function reset() {
}
}
function indent() {
// YAML does not support tabs
input.value.setRangeText(' ', input.value.selectionStart, input.value.selectionEnd, 'end');
}
onMounted(() => {
window.addEventListener('beforeunload', (event) => {
if (changed.value) {