From d9b623ab194e57516a1aa4a66978f6b8288b4310 Mon Sep 17 00:00:00 2001 From: Abhinav Date: Tue, 22 Nov 2022 18:21:00 +0530 Subject: [PATCH] add favorite keyboard shortcut --- src/components/PhotoViewer/index.tsx | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/components/PhotoViewer/index.tsx b/src/components/PhotoViewer/index.tsx index 00685e69b..4810f86ed 100644 --- a/src/components/PhotoViewer/index.tsx +++ b/src/components/PhotoViewer/index.tsx @@ -136,6 +136,10 @@ function PhotoViewer(props: Iprops) { case 'F': toggleFullscreen(photoSwipe); break; + case 'l': + case 'L': + onFavClick(photoSwipe?.currItem as EnteFile); + break; default: break; }