mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-09-01 22:29:44 +08:00
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:
@@ -1,6 +1,6 @@
|
||||
import { contextBridge } from 'electron';
|
||||
|
||||
import { affine, appInfo, getElectronAPIs } from './electron-api';
|
||||
import { affine, appInfo, cmdFind, getElectronAPIs } from './electron-api';
|
||||
|
||||
const { apis, events } = getElectronAPIs();
|
||||
|
||||
@@ -10,6 +10,7 @@ contextBridge.exposeInMainWorld('events', events);
|
||||
|
||||
try {
|
||||
contextBridge.exposeInMainWorld('affine', affine);
|
||||
contextBridge.exposeInMainWorld('cmdFind', cmdFind);
|
||||
} catch (error) {
|
||||
console.error('Failed to expose affine APIs to window object!', error);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user