π End-to-end encrypted cloud for everything.
Dart 2faandroidauthye2eeencryptionend-to-end-encryptionfluttergolanggoogle-photosgoogle-photos-alternativeiosopensourcephotosprivacyprivacy-toolstypescriptzero-knowledge
refractor(FileViewer):update-shortcut-buttons
Aswin Asok05dd0c2cf38e
diff --git a/desktop/changes/keep-info-panel-open-while-navigating.md b/desktop/changes/keep-info-panel-open-while-navigating.mdindex 1046774f46..92340108f8 100644--- a/desktop/changes/keep-info-panel-open-while-navigating.md+++ b/desktop/changes/keep-info-panel-open-while-navigating.md@@ -1 +1 @@-- Keep the info panel open when using arrow keys while viewing files.+- Keep the info panel open when using Alt/Option + arrow keys while viewing files.diff --git a/web/packages/base/locales/en-US/translation.json b/web/packages/base/locales/en-US/translation.jsonindex 45ab8aa6b2..77801d0ff4 100644--- a/web/packages/base/locales/en-US/translation.json+++ b/web/packages/base/locales/en-US/translation.json@@ -362,7 +362,7 @@"details": "Details","view_exif": "View all Exif data","no_exif": "No Exif data",- "file_info_arrow_navigation_hint": "Use the left and right arrow keys to move between photos without closing this panel.",+ "file_info_arrow_navigation_hint": "Use Alt/Option + left or right arrow to move between photos without closing this panel.","exif": "Exif","two_factor": "Two-factor","two_factor_authentication": "Two-factor authentication",diff --git a/web/packages/gallery/components/viewer/FileViewer.tsx b/web/packages/gallery/components/viewer/FileViewer.tsxindex 57cd001d9c..c5823b190b 100644--- a/web/packages/gallery/components/viewer/FileViewer.tsx+++ b/web/packages/gallery/components/viewer/FileViewer.tsx@@ -1535,14 +1535,14 @@ export const FileViewer: React.FC<FileViewerProps> = ({const handleShortcutsClose = useCallback(() => setOpenShortcuts(false), []);const shouldIgnoreKeyboardEvent = useCallback((event: KeyboardEvent) => {- // Allow the file info drawer itself to pass through plain slide arrows.+ // Allow the file info drawer itself to pass through the slide shortcut.const shouldAllowFileInfoArrowNavigation =openFileInfo &&!fileInfoNavigationLocked &&!event.shiftKey &&!event.metaKey &&!event.ctrlKey &&- !event.altKey &&+ event.altKey &&(event.key == "ArrowLeft" || event.key == "ArrowRight");// Don't handle keydowns if any of the viewer's own modals are open.