';
html += '
Site🌐 ' + highlightText(e.site, searchQuery) + '
';
if (showMail) html += '
Username👤 ' + highlightText(e.username, searchQuery) + '
';
if (!showTrash) {
@@ -984,7 +984,13 @@ function attachEvents() {
document.querySelectorAll('.edit-btn').forEach(b => b.onclick = function(ev) { ev.stopPropagation(); openEdit(this.dataset.id); });
document.querySelectorAll('.star-btn').forEach(b => b.onclick = function(ev) { ev.stopPropagation(); toggleFavorite(this.dataset.id); });
document.querySelectorAll('.copy-p').forEach(b => b.onclick = async function(ev) { ev.stopPropagation(); const pw = entryPw(this.dataset.id); try { await navigator.clipboard.writeText(pw); this.textContent = '✓'; const btn = this; setTimeout(() => { btn.textContent = '📋'; }, 1000); showZigzagToast(this, '📋 Copied!', 'success'); playSound('copy'); } catch (e) { showZigzagToast(this, 'Failed', 'error'); } });
- // Password reveal on hover
+ // Double-click entry to edit
+ document.querySelectorAll('[draggable="true"], .detail-card').forEach(el => {
+ el.addEventListener('dblclick', function(ev) {
+ const id = this.dataset.id;
+ if (id && !showTrash) { ev.stopPropagation(); openEdit(id); }
+ });
+ });
if (showView) {
document.querySelectorAll('.pw-display.pw-hover').forEach(el => {
el.addEventListener('mouseenter', function() {