mirror of
https://github.com/atom/atom.git
synced 2026-04-28 03:01:47 -04:00
Add macOS read and write find pasteboard methods
This commit is contained in:
@@ -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.
|
||||
//
|
||||
|
||||
Reference in New Issue
Block a user