Conversation
|
Hi, @AIG-Livny and thanks for PR! I've checked breathy, how other UI libraries do handle clipboard. Usually clipboard is 'singleton'-like, and has global get/set function. Would it be possible to refactor this PR into :
|
|
Hi, @Try! Thanks for the review! I tried to follow your advice and would appreciate another look. The X11 clipboard is isn't trivial, and to paste data from the system, we need to receive the SelectionNotify event. I couldn't find a better solution than waiting for the required event. At the same time, we still need to handle other events, so I've separated the handlers into the dispatchEvent function and called it while waiting for SelectionNotify |
You already have a storage for pasted data in Also I'm worried that with such event spinning, weird cases of recursion may happen in UI. |
|
Hi, @AIG-Livny ! Just kindly check, if you are still working on this PR. If there is no time or anything - I can take clipboard work from here, its fine |
System clipboard paste functionality. Unfortunately, this is only Linux implementation for now.
I'am going to do Ctrl+V from system clipboard into console.