Skip to content

TagSpaces is an offline, open source, document manager with tagging support

fix: open prev and next documents with keyboard shortcuts

Ilian Sapundshievafa0945bc751
diff --git a/app/components/EntryContainer.tsx b/app/components/EntryContainer.tsx
index d496bb57c..601a7c3b6 100644
--- a/app/components/EntryContainer.tsx
+++ b/app/components/EntryContainer.tsx
@@ -972,10 +972,14 @@ class EntryContainer extends React.Component<Props, State> {
handlers={{
closeViewer: this.startClosingFile,
saveDocument: this.startSavingFile,
- editDocument: this.editFile
+ editDocument: this.editFile,
+ nextDocument: this.openNextFile,
+ prevDocument: this.openPrevFile
// reloadDocument: this.reloadDocument,
}}
keyMap={{
+ nextDocument: keyBindings.nextDocument,
+ prevDocument: keyBindings.prevDocument,
closeViewer: keyBindings.closeViewer,
saveDocument: keyBindings.saveDocument,
editDocument: keyBindings.editDocument