feat(core): cmd+f search in doc function (#7040)

You can use the cmd+F shortcut key to trigger the FindInPage function.
This commit is contained in:
JimmFly
2024-05-28 06:19:48 +00:00
parent 5759c15de3
commit bd9c929d05
19 changed files with 440 additions and 4 deletions

View File

@@ -9,6 +9,7 @@ import type {
import type {
affine as exposedAffineGlobal,
appInfo as exposedAppInfo,
cmdFind as exposedCmdFind,
} from '@affine/electron/preload/electron-api';
type MainHandlers = typeof mainHandlers;
@@ -39,5 +40,8 @@ export const events = (globalThis as any).events as ClientEvents | null;
export const affine = (globalThis as any).affine as
| typeof exposedAffineGlobal
| null;
export const cmdFind = (globalThis as any).cmdFind as
| typeof exposedCmdFind
| null;
export type { UpdateMeta } from '@affine/electron/main/updater/event';