From 4f1c19f1e29ad91002329861f7c28c91eeea7a21 Mon Sep 17 00:00:00 2001 From: Elian Doran Date: Tue, 16 Dec 2025 18:56:41 +0200 Subject: [PATCH] feat(layout): keyboard shortcut for note info --- apps/client/src/widgets/layout/StatusBar.tsx | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/apps/client/src/widgets/layout/StatusBar.tsx b/apps/client/src/widgets/layout/StatusBar.tsx index 424fd81fa..cc20931d1 100644 --- a/apps/client/src/widgets/layout/StatusBar.tsx +++ b/apps/client/src/widgets/layout/StatusBar.tsx @@ -222,8 +222,12 @@ export function NoteInfoBadge({ note, setSimilarNotesShown }: NoteInfoContext) { const [ originalFileName ] = useNoteLabel(note, "originalFileName"); const noteType = useNoteProperty(note, "type"); const noteTypeMapping = useMemo(() => NOTE_TYPES.find(t => t.type === noteType), [ noteType ]); + const enabled = note && noteType && noteTypeMapping; - return (note && noteType && noteTypeMapping && + // Keyboard shortcut. + useTriliumEvent("toggleRibbonTabNoteInfo", () => enabled && dropdownRef.current?.show()); + + return (enabled &&