Avoid blocking UI during vault open and unlock

This commit is contained in:
Joe Julian
2026-04-01 16:54:16 -07:00
parent 4f2bb3d158
commit 80737869ea
4 changed files with 513 additions and 49 deletions
+3 -3
View File
@@ -46,14 +46,14 @@ func (u *ui) handleKeyPress(name key.Name, modifiers key.Modifiers) bool {
return true
}
if u.isVaultLocked() && name == key.NameReturn {
u.runAction("unlock vault", u.unlockAction)
u.startUnlockAction()
return true
}
if u.shouldShowLifecycleSetup() && name == key.NameReturn {
if u.lifecycleMode == "remote" {
u.runAction("open remote vault", u.openRemoteAction)
u.startOpenRemoteAction()
} else {
u.runAction("open vault", u.openVaultAction)
u.startOpenVaultAction()
}
return true
}