feat: add config-backed ask keymaps

This commit is contained in:
Erik Kotsiuba
2026-04-28 22:35:43 +02:00
parent 5c0d8964fb
commit e8a36b72ef
31 changed files with 2192 additions and 422 deletions
+4 -5
View File
@@ -127,27 +127,26 @@ function buildOptionDetailModel(
const note = option.isCustomOption
? undefined
: getOptionNote(state, question.id, option.value);
const withGap = !option.isCustomOption;
if (noteOpen) {
return {
kind: "editor",
placeholder: UI_TEXT.editorPlaceholderNote,
withGap,
withGap: false,
};
}
if (inputOpen) {
return {
kind: "editor",
placeholder: UI_TEXT.editorPlaceholderInput,
withGap,
withGap: false,
};
}
if (customText) {
return { kind: "custom-text", text: customText, withGap };
return { kind: "custom-text", text: customText, withGap: false };
}
if (note) {
return { kind: "saved-note", text: note, withGap };
return { kind: "saved-note", text: note, withGap: false };
}
return;
}