Package Exports
- electron-find
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (electron-find) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
electron-find
Introduction
Find all matches for the text in electron app
Install
$ npm install electron-find --save
Usage
# basic usage
const { remote } = require('electron')
const { FindInPage } = require('../src/index.js')
let findInPage = new FindInPage(remote.getCurrentWebContents(), {
preload: true,
offsetTop: 4,
offsetRight: 4
})
findInPage.openFindWindow()
# run demo
npm run e
Shortcut
keys | function |
---|---|
Enter | find next |
Shift + Enter | find back |
Esc | close |