Skip to content

Commit 5ba71c5

Browse files
committed
fix: update key bindings in settings modal for better user experience
1 parent ed01d63 commit 5ba71c5

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

crates/agentic-tui/src/ui/app.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -731,7 +731,7 @@ impl App {
731731
_ => {}
732732
},
733733
AppMode::Settings => match key.code {
734-
KeyCode::Char('r') => self.mode = AppMode::Normal,
734+
KeyCode::Esc => self.mode = AppMode::Normal,
735735
KeyCode::Char('s') => {
736736
if let Err(e) = self.settings.save() {
737737
eprintln!("Warning: Failed to save settings: {}", e);

crates/agentic-tui/src/ui/settings_modal.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -141,7 +141,7 @@ pub fn render_settings_modal(
141141
let action_text = match mode {
142142
AppMode::EditingApiKey => "[ENTER] Save | [CTRL+V] Paste | [ESC] Cancel",
143143
AppMode::EditingEndpoint => "[ENTER] Save | [ESC] Cancel",
144-
_ => "[ENTER] Edit | [↑↓] Navigate | [S]ave | [R]eturn",
144+
_ => "[↑↓] Navigate | [S]ave changes | [ESC] Return",
145145
};
146146
let action_style = if selection == SettingsSelection::Save {
147147
theme.highlight_style()

0 commit comments

Comments
 (0)