Skip to content

Commit 199a992

Browse files
committed
Add up/down keys for switch mode
1 parent 460bf1d commit 199a992

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/handler.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -170,13 +170,13 @@ pub async fn handle_key_events(
170170
}
171171
}
172172

173-
KeyCode::Char('j') => {
173+
KeyCode::Char('j') | KeyCode::Down => {
174174
if app.reset.selected_mode == Mode::Station {
175175
app.reset.selected_mode = Mode::Ap;
176176
}
177177
}
178178

179-
KeyCode::Char('k') => {
179+
KeyCode::Char('k') | KeyCode::Up => {
180180
if app.reset.selected_mode == Mode::Ap {
181181
app.reset.selected_mode = Mode::Station;
182182
}

0 commit comments

Comments
 (0)