Skip to content

Commit

Permalink
[fix](app): Changed to automatically focus on the main block when tog…
Browse files Browse the repository at this point in the history
…gled
  • Loading branch information
woxjro committed Oct 23, 2023
1 parent 4479ce2 commit 3833b4c
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/app/event_handling.rs
Original file line number Diff line number Diff line change
Expand Up @@ -181,6 +181,13 @@ where
},
event::KeyCode::Char('e') => {
if key.modifiers == event::KeyModifiers::CONTROL {
match app.get_current_route().get_active_block() {
ActiveBlock::LatestBlocks | ActiveBlock::LatestTransactions => {
app.change_active_block(ActiveBlock::Main);
}
_ => {}
}

app.is_toggled = !app.is_toggled;
}
}
Expand Down

0 comments on commit 3833b4c

Please sign in to comment.