Skip to content

Commit

Permalink
Merge pull request #29 from RawToast/main
Browse files Browse the repository at this point in the history
Add return to bookmark keyboard shortcut
  • Loading branch information
ttu-ttu authored Dec 18, 2021
2 parents 5818296 + 2c5969f commit dfb2043
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,7 @@ Key Code | Description
<kbd>A</kbd> | Increase auto-scroll speed
<kbd>D</kbd> | Decrease auto-scroll speed
<kbd>B</kbd> | Create bookmark at your current location
<kbd>R</kbd> | Return to bookmark location
<kbd>M</kbd> | Open book manager
<kbd>PageDown</kbd> | Move to next page
<kbd>PageUp</kbd> | Move to previous page
Expand Down
3 changes: 3 additions & 0 deletions src/app/app.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -127,6 +127,9 @@ export class AppComponent implements OnInit {
case 'KeyB':
this.bookmarManagerService.saveScrollPosition();
break;
case 'KeyR':
this.bookmarManagerService.scrollToSavedPosition();
break;
case 'KeyM':
this.openBookManager();
break;
Expand Down

0 comments on commit dfb2043

Please sign in to comment.