From 87ce038b19786409415723a927306b274815d3cf Mon Sep 17 00:00:00 2001 From: th Date: Wed, 15 Apr 2026 21:23:57 +0200 Subject: [PATCH] new-bucket dialog: Enter in name field submits MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Typing a name and hitting Enter did nothing — users had to move to the Create button. Wire Enter on the name input to click the submit path so the common flow is keyboard-only. Co-Authored-By: Claude Opus 4.6 (1M context) --- config.php | 2 +- electron/package.json | 2 +- public/plugins/collab-buckets/collab-buckets.js | 12 ++++++++++++ 3 files changed, 14 insertions(+), 2 deletions(-) diff --git a/config.php b/config.php index 9b7b4a9..ace3eeb 100644 --- a/config.php +++ b/config.php @@ -1,7 +1,7 @@ { + if (e.key === 'Enter') { + e.preventDefault(); + e.stopPropagation(); + overlay.querySelector('.collab-btn-submit').click(); + } + }); + setTimeout(() => overlay.querySelector('#__cb_name')?.focus(), 50); }); }