Skip to content

Commit 95ced00

Browse files
committed
fix: add missing 'n' key handler for new variable
1 parent f5d5a2a commit 95ced00

1 file changed

Lines changed: 9 additions & 0 deletions

File tree

src/tui.rs

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -291,6 +291,15 @@ fn handle_key(code: KeyCode, app: &mut App, should_quit: &mut bool) {
291291
}
292292
}
293293
}
294+
KeyCode::Char('i') => {
295+
if app.vault.is_some() && !app.show_folders && !app.adding_entry && !app.show_secret {
296+
app.adding_entry = true;
297+
app.adding_id_mode = false;
298+
app.new_entry_id = String::new();
299+
app.new_vars = vec![(String::new(), String::new())];
300+
app.current_var = 0;
301+
}
302+
}
294303
KeyCode::Char('n') if app.adding_entry && !app.adding_id_mode => {
295304
app.new_vars.push((String::new(), String::new()));
296305
}

0 commit comments

Comments
 (0)