From c71ea643e7e8d83ce88976863aee929293cadc2a Mon Sep 17 00:00:00 2001 From: r-zakarya <82443831+r-zakarya@users.noreply.github.com> Date: Sat, 1 Aug 2026 11:55:29 +0100 Subject: [PATCH] feat(entries): add Copy value to the custom-field row menu The inline copy button stays: copy is the frequent action and burying it costs a click every time. Unlike the old lock-versus-eye pair, two ways to copy are not confusable. --- js/app.js | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/js/app.js b/js/app.js index 21105bf..23ded0b 100644 --- a/js/app.js +++ b/js/app.js @@ -4318,6 +4318,14 @@ function buildCustomFieldRow(field, idx, rerender) { kebabMenu.classList.toggle('is-open'); }); + const copyItem = el('button', { class: 'kebab-item', type: 'button' }, 'Copy value'); + copyItem.addEventListener('click', ev => { + ev.stopPropagation(); + kebabMenu.classList.remove('is-open'); + copyBtn.click(); + }); + kebabMenu.appendChild(copyItem); + const secretItem = el('button', { class: 'kebab-item', type: 'button' }); const paintSecretItem = () => { secretItem.textContent = field.is_secret ? 'Make public' : 'Store as secret';