fix(array-operation): start encrypted array on Enter in passphrase field (OS-462)#2670
fix(array-operation): start encrypted array on Enter in passphrase field (OS-462)#2670elibosley wants to merge 1 commit into
Conversation
WalkthroughA new ChangesEnter-key submit for encryption passphrase inputs
Estimated code review effort🎯 1 (Trivial) | ⏱️ ~3 minutes Poem
🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✨ Finishing Touches📝 Generate docstrings
🧪 Generate unit tests (beta)
Comment |
🔧 PR Test Plugin AvailableA test plugin has been generated for this PR that includes the modified files. Version: 📥 Installation Instructions:Install via Unraid Web UI:
Alternative: Direct Download
|
5cef36b to
fa9f0a8
Compare
Pressing Enter in the encryption passphrase (or retype passphrase) field now triggers the Start button, instead of requiring a mouse click. The handler only fires when the Start button is enabled, so it respects the same passphrase validation as clicking (non-empty, matching retype, etc.). In the set-new-passphrase flow (retype field shown), Enter in the passphrase field advances focus to the retype field to confirm, rather than doing nothing. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
fa9f0a8 to
b6f44fd
Compare
Summary
On the Array Operation page, when starting an encrypted array you must type the passphrase and then click the Start button — pressing Enter in the passphrase field does nothing. This adds Enter-to-start so the passphrase field behaves like a normal login form.
Changes
submitOnEnter(event)helper inArrayOperation.pagethat, on Enter, clicks#cmdStartonly when it is enabled.onkeydown='submitOnEnter(event)'onto the Passphrase and Retype passphrase inputs.Because it just clicks the existing Start button, it inherits all current validation: the button stays disabled until the passphrase is non-empty (and matches the retype field when shown), so Enter can't bypass any checks or fire while the array isn't ready to start. The keyfile flow is unaffected.
Test plan
🤖 Generated with Claude Code
Summary by CodeRabbit
Linear