Skip to content

Commit

Permalink
automatically focus "page backward" button when reaching last page of…
Browse files Browse the repository at this point in the history
… document. issue #2456
  • Loading branch information
j-dimension committed Aug 1, 2024
1 parent 52476e6 commit 5523518
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -793,6 +793,10 @@ private void setCurrentPage(int pageIndex) {
cmdPageBackward.setEnabled(currentPage > 0);
cmdLastPage.setEnabled((currentPage + 1) < renderedPages);
cmdPageForward.setEnabled((currentPage + 1) < renderedPages);

if(!this.cmdPageForward.isEnabled()) {
this.cmdPageBackward.requestFocus();
}
}

/**
Expand Down

0 comments on commit 5523518

Please sign in to comment.