From 7db65ca8997906749207b91b723b3996583e77f1 Mon Sep 17 00:00:00 2001 From: sadick254 Date: Thu, 15 Oct 2020 19:56:14 +0300 Subject: [PATCH] Add macOS read and write find pasteboard methods --- src/clipboard.js | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/src/clipboard.js b/src/clipboard.js index db4cc4db2..9fe7938a0 100644 --- a/src/clipboard.js +++ b/src/clipboard.js @@ -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. //