escrcpy/electron/events/shortcuts/index.js
2024-05-26 22:13:20 +08:00

13 lines
355 B
JavaScript

// import { globalShortcut } from 'electron'
export default (mainWindow) => {
// mainWindow.on('focus', () => {
// globalShortcut.register('CommandOrControl+F', (event) => {
// mainWindow.webContents.send('focus-on-search')
// })
// })
// mainWindow.on('blur', () => {
// globalShortcut.unregister('CommandOrControl+F')
// })
}