Merge pull request #7719 from electron/find-pasteboard

Add macOS find pasteboard support
This commit is contained in:
Cheng Zhao 2016-10-26 11:23:14 +09:00 committed by GitHub
commit e97d3c21a3
7 changed files with 172 additions and 47 deletions

View file

@ -106,6 +106,19 @@ clipboard.write({
})
```
### `clipboard.readFindText()` _macOS_
Returns `String` - The text on the find pasteboard. This method uses synchronous
IPC when called from the renderer process. The cached value is reread from the
find pasteboard whenever the application is activated.
### `clipboard.writeFindText(text)` _macOS_
* `text` String
Writes the `text` into the find pasteboard as plain text. This method uses
synchronous IPC when called from the renderer process.
### `clipboard.clear([type])`
* `type` String (optional)