Merge pull request #21510 from atom/NSFindPBoard

Add support for global macOS find pasteboard
This commit is contained in:
Sadick
2020-10-16 08:48:57 +03:00
committed by GitHub

View File

@@ -54,6 +54,18 @@ module.exports = class Clipboard {
return clipboard.readText();
}
// Public: Write the given text to the macOS find pasteboard
writeFindText(text) {
clipboard.writeFindText(text);
}
// Public: Read the text from the macOS find pasteboard.
//
// Returns a {String}.
readFindText() {
return clipboard.readFindText();
}
// Public: Read the text from the clipboard and return both the text and the
// associated metadata.
//