Merge pull request #7719 from electron/find-pasteboard
Add macOS find pasteboard support
This commit is contained in:
commit
e97d3c21a3
7 changed files with 172 additions and 47 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue