Skip to content

Commit

Permalink
fix(app): auto select first page when focusing book -> pages
Browse files Browse the repository at this point in the history
Signed-off-by: Deep Panchal <deep302001@gmail.com>
  • Loading branch information
deepanchal committed Jul 2, 2024
1 parent 6ddf7eb commit 799f0dd
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/app.rs
Original file line number Diff line number Diff line change
Expand Up @@ -147,7 +147,10 @@ impl App {
})?;
}
Action::FocusNext => match self.mode {
Mode::Book => self.mode = Mode::Page,
Mode::Book => {
self.mode = Mode::Page;
action_tx.send(Action::SelectNextPage)?;
}
Mode::Page => self.mode = Mode::Content,
_ => {}
},
Expand Down

0 comments on commit 799f0dd

Please sign in to comment.