From 530c7803b43f354318b745fa0bb1b455954f4bcc Mon Sep 17 00:00:00 2001 From: Abe Jellinek <1770299+AbeJellinek@users.noreply.github.com> Date: Fri, 20 Mar 2026 10:39:34 -0400 Subject: [PATCH] Add Read Aloud to annotation context menu --- src/common/context-menu.js | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/common/context-menu.js b/src/common/context-menu.js index d8e2cc986..01ab4b46f 100644 --- a/src/common/context-menu.js +++ b/src/common/context-menu.js @@ -369,6 +369,13 @@ export function createAnnotationContextMenu(reader, params) { } } ], + [ + { + label: reader._getString('reader-read-aloud'), + disabled: annotations.length !== 1 || !reader._enableReadAloud, + onCommand: () => reader.startReadAloudAtPosition(annotations[0].position) + } + ], [ annotations.every(x => ['highlight', 'underline'].includes(x.type)) && annotations.some(x => x.type === 'underline')