fix(overlay): restore macOS Yomitan popup focus without breaking click-away (#125)

This commit is contained in:
2026-06-14 16:46:13 -07:00
committed by GitHub
parent 1158be5b39
commit ae7e6f82a8
7 changed files with 317 additions and 40 deletions
+2
View File
@@ -139,6 +139,7 @@ export type RendererState = {
keyboardSelectionVisible: boolean;
keyboardSelectedWordIndex: number | null;
yomitanPopupVisible: boolean;
isOverYomitanPopup: boolean;
primarySubtitleMode: PrimarySubMode;
};
@@ -254,6 +255,7 @@ export function createRendererState(): RendererState {
keyboardSelectionVisible: false,
keyboardSelectedWordIndex: null,
yomitanPopupVisible: false,
isOverYomitanPopup: false,
primarySubtitleMode: 'visible',
};
}