Simplify locked vault screen

This commit is contained in:
Joe Julian
2026-03-29 16:47:29 -07:00
parent 2e9e2aae5f
commit 4b78a649b1
4 changed files with 112 additions and 3 deletions
+7
View File
@@ -45,6 +45,10 @@ func (u *ui) handleKeyPress(name key.Name, modifiers key.Modifiers) bool {
if u.handleShortcutKey(name, modifiers) {
return true
}
if u.isVaultLocked() && name == key.NameReturn {
u.runAction("unlock vault", u.unlockAction)
return true
}
if u.shouldShowLifecycleSetup() && name == key.NameReturn {
if u.lifecycleMode == "remote" {
u.runAction("open remote vault", u.openRemoteAction)
@@ -95,6 +99,9 @@ func (u *ui) moveKeyboardFocus(delta int) {
}
func (u *ui) focusOrder() []focusID {
if u.isVaultLocked() {
return []focusID{detailFocusID(detailFieldPassword)}
}
order := []focusID{focusSearch}
if u.state.Section != appstate.SectionRecycleBin {
order = append(order, breadcrumbFocusID(0))