Electron Fundamentals, v2 Electron Fundamentals, v2

Write to System Clipboard Exercise

Check out a free preview of the full Electron Fundamentals, v2 course:
The "Write to System Clipboard Exercise" Lesson is part of the full, Electron Fundamentals, v2 course featured in this preview video. Here's what you'd learn in this lesson:

Students are instructed to create another keyboard shortcut that allows the user to write the most recent clipping back to the clipboard.

Get Unlimited Access Now

Transcript from the "Write to System Clipboard Exercise" Lesson

[00:00:00]
>> Steve Kinney: You are going to register a second global shortcut. Might I suggest command, shift, at symbol. Which is also command, shift, two. With that we'll send a write to Clipboard message. Which you will, in the same way that we registered a renderer here you will go ahead and do the same thing.

[00:00:21] And this time it will call the handleWriteToClipboard method. And now you'll be able to add stuff to Clipmaster from anywhere in the operating system. And read stuff from Clipmaster anywhere in the operating system.