Implement TUI authentication and inactivity relock
This commit is contained in:
1 parent
91f58bae3a
commit
57a79b7d21
6 files changed
+365
-19
No files matched your search
+12
-1
@@ -11,6 +11,7 @@ pub enum Action {
|
||||
Command,
|
||||
Cancel,
|
||||
Lock,
|
||||
Unlock,
|
||||
Refresh,
|
||||
Next,
|
||||
Previous,
|
||||
@@ -85,6 +86,13 @@ pub static ACTIONS: &[ActionSpec] = &[
|
||||
bindings: keys!((KeyCode::Char('?'), KeyModifiers::NONE, "?")),
|
||||
modes: UNLOCKED,
|
||||
},
|
||||
ActionSpec {
|
||||
action: Action::Unlock,
|
||||
label: "unlock",
|
||||
command: "unlock",
|
||||
bindings: keys!((KeyCode::Enter, KeyModifiers::NONE, "Enter")),
|
||||
modes: &[Mode::Locked],
|
||||
},
|
||||
ActionSpec {
|
||||
action: Action::Command,
|
||||
label: "command",
|
||||
@@ -103,7 +111,10 @@ pub static ACTIONS: &[ActionSpec] = &[
|
||||
action: Action::Lock,
|
||||
label: "lock",
|
||||
command: "lock",
|
||||
bindings: keys!((KeyCode::Char('l'), KeyModifiers::CONTROL, "C-l")),
|
||||
bindings: keys!(
|
||||
(KeyCode::Char('l'), KeyModifiers::CONTROL, "C-l"),
|
||||
(KeyCode::Char('z'), KeyModifiers::CONTROL, "C-z"),
|
||||
),
|
||||
modes: UNLOCKED,
|
||||
},
|
||||
ActionSpec {
|
||||
|
||||
Reference in new issue
Block a user